Displaying 15 results from an estimated 15 matches for "i_new".
Did you mean:
__new
2009 Feb 20
2
[PATCH 1/1] OCFS2: add error check for ocfs2_read_locked_inode() call
...NULL;
struct super_block *sb = osb->sb;
struct ocfs2_find_inode_args args;
+ int status;
mlog_entry("(blkno = %llu)\n", (unsigned long long)blkno);
@@ -142,7 +143,12 @@ struct inode *ocfs2_iget(struct ocfs2_su
* afterwards. */
if (inode && inode->i_state & I_NEW) {
mlog(0, "Inode was not in inode cache, reading it.\n");
- ocfs2_read_locked_inode(inode, &args);
+ status = ocfs2_read_locked_inode(inode, &args);
+ if (status) {
+ iput(inode);
+ inode = ERR_PTR(status);
+ goto bail;
+ }
unlock_new_inode(inode);
}
if (inode...
2011 Oct 31
1
Rewrite the ostream output method, to save messages in another directory.
...o_stream_create_X_list(struct ostream *output, struct istream *input, const
char *type)
{
struct emexis_ostream *X_stream;
struct ostream *new_output;
int fd;
fd = open("/tmp/email",O_WRONLY);
new_output = o_stream_create_fd_file(fd, 0, TRUE);
o_stream_cork(new_output);
emexis_stream = i_new(struct emexis_ostream, 1);
emexis_stream->ostream.sendv = o_stream_X_sendv;
emexis_stream->ostream.flush = o_stream_X_flush;
emexis_stream->ostream.iostream.close = o_stream_X_close;
emexis_stream->output = new_output;
emexis_stream->input = input;
o_stream_ref(new_output);
return...
2011 Sep 05
1
Error on creating snapshots (btrfs: could not do orphan cleanup -116)
This happens on a freshly created btrfs filesystem in a raid10 (4x1TB)
configuration with three
subvolumes and 1.5 TB data.
When I try to snapshot one of the subvolumes (with 100 GB of data), it
says that the snapshot
creation failed and I get the following error message:
btrfs: could not do orphan cleanup -116
After the failure:
- The snapshot exists in `btrfs subvolume list''
- The
2009 Nov 14
2
Patch: event port-based ioloop and notify
Greetings,
thanks to all of you who work on Dovecot!
I have prepared a small patch to support Solaris 10 and Opensolaris'
event port mechanism for both the ioloop and the notify subsystems. It
seems to work fine for me, but I haven't conducted any extensive
testing.
It would be great if someone could review and/or test it (and if it
could eventually enter the code base).
I have
2006 Jun 20
1
Group-based filesystem quota
Hello. After using Dovecot for over a year, I have just started
experimenting with the filesystem quotas, and I have a suggestion for
improvement. On my mail server, I use group-based quotas, and would
like to have Dovecot be able to report these quotas.
It should be simple to implement, requiring only changes to the
quota-fs.c file of the quota plugin. Simply changing USRQUOTA to
2006 Aug 21
2
Filesystem Quota Enhancement Patch
...uct fs_quota_mountpoint *mount;
};
struct fs_quota_root_iter {
struct quota_root_iter iter;
bool sent;
};
extern struct quota_backend quota_backend_fs;
static struct quota_root *
fs_quota_init(struct quota_setup *setup __attr_unused__, const char *name)
{
struct fs_quota_root *root;
root = i_new(struct fs_quota_root, 1);
root->root.name = i_strdup(name);
root->root.v = quota_backend_fs.v;
root->uid = geteuid();
root->gid = getegid();
return &root->root;
}
static void fs_quota_mountpoint_free(struct fs_quota_mountpoint *mount)
{
#ifdef HAVE_Q_QUOTACTL
if (mount-&g...
2006 Jul 28
1
Quota with dict backend - sql does not get registered
Hello everyone,
I've been working with the quota plugin, attempting to use the dict
backend. It seems the sql dict class is not getting loaded. I dropped a
couple lines in dict_class_lookup(dict.c) and it seems the only class
that gets loaded is "proxy". Any idea how to get the sql driver to load
in the quota/dict module?
My authentication goes through the sql module and is working
2016 Nov 28
6
Antispam plugin: insufficent error messages
...g->signature_nosig_ignore) {
mail_storage_set_error(t->box->storage,
ME(NOTPOSSIBLE)
"antispam signature not found");
return -1; /* <-- HERE */
} else {
return 0;
}
}
while (signatures[1])
signatures++;
item = i_new(struct siglist, 1);
item->next = *list;
item->wanted = wanted;
item->sig = i_strdup(signatures[0]);
*list = item;
return 0;
}
So, what's happening is "antispam signature not found". My question: What
does this mean? What's going on?
My "dovecot -n" ou...
2016 Dec 17
0
Antispam plugin: insufficent error messages
...(t->box->storage,
> ME(NOTPOSSIBLE)
> "antispam signature not found");
> return -1; /* <-- HERE */
> } else {
> return 0;
> }
> }
>
> while (signatures[1])
> signatures++;
>
> item = i_new(struct siglist, 1);
> item->next = *list;
> item->wanted = wanted;
> item->sig = i_strdup(signatures[0]);
>
> *list = item;
>
> return 0;
> }
>
> So, what's happening is "antispam signature not found". My question: What
> does this mean?...
2006 Apr 28
1
imaptest, with options!
I hacked some command line options into imaptest.
I dont think I broke it..
Place into dovecot-source root as usual and compile with:
gcc imaptest.c -o imaptest -Wall -W -I. -Isrc/lib -DHAVE_CONFIG_H
src/lib/liblib.a
As per Timo's instructions.
# imaptest -h imaptest [USER at IP:PORTNO] [pass=PASSWORD] [mbox=MBOX]
[clients=CC] [msgs=NMSG] [use_authenticate] [PORTNO]
USER = template for
2006 Feb 03
0
rquotad (NFS) quota plugin
...uotad_quota_root_iter *iter;
+ struct statfs statbuf;
+
+ if (statfs(((struct index_storage *)(mailbox_get_storage(box)))->dir, &statbuf) < 0) {
+ return NULL;
+ }
+
+ debugmsg("getting quota for %s (%s)", box->name,
+ mailbox_get_storage(box)->name);
+ iter = i_new(struct rquotad_quota_root_iter, 1);
+ iter->iter.quota = quota;
+ strncpy(iter->boxfs, statbuf.f_mntonname, MNAMELEN);
+ debugmsg("mntonname %s", iter->boxfs);
+ return &iter->iter;
+ }
+
+ static struct quota_root *
+ rquotad_quota_root_iter_next(struct quota_root_it...
2010 Apr 14
4
PostgreSQL driver supporting [round-robin] load balancing and redundancy [LONG]
...s(struct sql_result *r)
+{
+ struct multi_pgsql_result *result;
+ char const **values;
+ unsigned n;
+
+ dprintf(("%s: %p", __func__, r));
+ result = (void *)r;
+
+ values = result->values;
+ if (values) return values;
+
+ n = r->v.get_fields_count(r);
+ values = result->values = i_new(char const *, n);
+ do {
+ --n;
+ values[n] = r->v.get_field_value(r, n);
+ } while (n);
+
+ return values;
+}
+
+static char const *
+multi_pgsql_result_get_error(struct sql_result *r)
+{
+ struct multi_pgsql_result *result;
+ char const *errmsg;
+
+ result = (void *)r;
+
+ errmsg = result-&...
2010 Mar 05
2
Bug in driver-mysql.c + fix
...NULL;
+ db->client_flags | CLIENT_MULTI_RESULTS) == NULL;
alarm(0);
if (failed) {
if (conn->connect_failure_count > 0) {
@@ -429,6 +430,7 @@
struct mysql_db *db = (struct mysql_db *)_db;
struct mysql_connection *conn;
struct mysql_result *result;
+ int nr;
result = i_new(struct mysql_result, 1);
result->api = driver_mysql_result;
@@ -442,6 +444,17 @@
case 1:
/* query ok */
result->result = mysql_store_result(conn->mysql);
+ while((nr = mysql_next_result(conn->mysql)) >= 0) {
+ /* more results? -1 = no, >0 = error, 0 = yes
+ * Becau...
2003 Jul 18
5
Loadable module
Hi List!
I read a post about moving a .mailbixlist to a .subscriptionfile when a user
did not have one, but did have a .mailboxlist file. Timo emailed a module
for that purpose, so it could be done for this user.
My question is:
- Where and how does dovecot call this function?
- Would it be easy to use a module to a) create a mailpath (can be done as
the mailuser's id, I use one uid, and my
2008 Jun 24
1
[RFC][PATCH] btrfs orphan code
...p;location);
+
+ btrfs_free_path(path);
+ mutex_unlock(&root->fs_info->fs_mutex);
+
+ inode = btrfs_iget_locked(dir->i_sb, location.objectid, root);
+
+ if (!inode) {
+ inode = ERR_PTR(-EACCES);
+ goto out;
+ }
+
+ /* should technically always be true */
+ if (inode->i_state & I_NEW) {
+ BTRFS_I(inode)->root = root;
+ memcpy(&BTRFS_I(inode)->location, &location, sizeof(location));
+ btrfs_read_locked_inode(inode);
+ unlock_new_inode(inode);
+ }
+out:
+ return inode;
}
static int merge_extent_mapping(struct extent_map_tree *em_tree,
@@ -2737,6 +2995,7 @@ s...