[dovecot-cvs] dovecot/src/lib-storage/index/mbox mbox-storage.c,1.56,1.57

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/mbox
In directory danu:/tmp/cvs-serv10641/src/lib-storage/index/mbox

Modified Files:
	mbox-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: mbox-storage.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib-storage/index/mbox/mbox-storage.c,v
retrieving revision 1.56
retrieving revision 1.57
diff -u -d -r1.56 -r1.57
--- mbox-storage.c	6 Jul 2003 22:59:31 -0000	1.56
+++ mbox-storage.c	15 Jul 2003 18:26:43 -0000	1.57
@@ -320,7 +320,7 @@
 }
 
 static struct mailbox *mbox_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;
@@ -347,7 +347,7 @@
 	}
 
 	ibox = index_storage_mailbox_init(storage, &mbox_mailbox, index,
-					  name, readonly, fast);
+					  name, flags);
 	if (ibox != NULL)
 		ibox->expunge_locked = mbox_expunge_locked;
 	return (struct mailbox *) ibox;
@@ -355,7 +355,7 @@
 
 static struct mailbox *
 mbox_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;
@@ -367,7 +367,7 @@
 		/* make sure inbox exists */
 		if (!verify_inbox(storage))
 			return FALSE;
-		return mbox_open(storage, "INBOX", readonly, fast);
+		return mbox_open(storage, "INBOX", flags);
 	}
 
 	if (!mbox_is_valid_existing_name(name)) {
@@ -387,7 +387,7 @@
 		if (!create_mbox_index_dirs(storage, name))
 			return NULL;
 
-		return mbox_open(storage, name, readonly, fast);
+		return mbox_open(storage, name, flags);
 	}
 
 	if (ENOTFOUND(errno)) {



More information about the dovecot-cvs mailing list