[dovecot-cvs] dovecot/src/lib-storage/index/maildir maildir-storage.c,1.44,1.45

cras at procontrol.fi cras at procontrol.fi
Tue Jul 15 22:26:45 EEST 2003


Update of /home/cvs/dovecot/src/lib-storage/index/maildir
In directory danu:/tmp/cvs-serv10641/src/lib-storage/index/maildir

Modified Files:
	maildir-storage.c 
Log Message:
index_mmap_invalidate = yes now invalidate memory maps before accessing
them. Setting this on should fix some problems with OpenBSD. It should also
make it possible to use index files over NFS as long as lock daemon is used.
It might be such a good idea however.



Index: maildir-storage.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib-storage/index/maildir/maildir-storage.c,v
retrieving revision 1.44
retrieving revision 1.45
diff -u -d -r1.44 -r1.45
--- maildir-storage.c	6 Jul 2003 22:55:22 -0000	1.44
+++ maildir-storage.c	15 Jul 2003 18:26:43 -0000	1.45
@@ -321,7 +321,7 @@
 
 static struct mailbox *
 maildir_open(struct mail_storage *storage, const char *name,
-	     int readonly, int fast)
+	     enum mailbox_open_flags flags)
 {
 	struct index_mailbox *ibox;
 	struct mail_index *index;
@@ -338,7 +338,7 @@
 	}
 
 	ibox = index_storage_mailbox_init(storage, &maildir_mailbox,
-					  index, name, readonly, fast);
+					  index, name, flags);
 	if (ibox != NULL)
 		ibox->expunge_locked = maildir_expunge_locked;
 	return (struct mailbox *) ibox;
@@ -359,7 +359,7 @@
 
 static struct mailbox *
 maildir_open_mailbox(struct mail_storage *storage,
-		     const char *name, int readonly, int fast)
+		     const char *name, enum mailbox_open_flags flags)
 {
 	const char *path;
 	struct stat st;
@@ -370,7 +370,7 @@
 	if (strcmp(name, "INBOX") == 0) {
 		if (!verify_inbox(storage))
 			return NULL;
-		return maildir_open(storage, "INBOX", readonly, fast);
+		return maildir_open(storage, "INBOX", flags);
 	}
 
 	if (!maildir_is_valid_existing_name(name)) {
@@ -386,7 +386,7 @@
 		    !create_control_dir(storage, name))
 			return FALSE;
 
-		return maildir_open(storage, name, readonly, fast);
+		return maildir_open(storage, name, flags);
 	} else if (errno == ENOENT) {
 		mail_storage_set_error(storage, "Mailbox doesn't exist: %s",
 				       name);



More information about the dovecot-cvs mailing list