[dovecot-cvs] dovecot/src/lib-storage mail-storage.h,1.46,1.47

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


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

Modified Files:
	mail-storage.h 
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: mail-storage.h
===================================================================
RCS file: /home/cvs/dovecot/src/lib-storage/mail-storage.h,v
retrieving revision 1.46
retrieving revision 1.47
diff -u -d -r1.46 -r1.47
--- mail-storage.h	15 Jun 2003 03:42:29 -0000	1.46
+++ mail-storage.h	15 Jul 2003 18:26:43 -0000	1.47
@@ -5,6 +5,12 @@
 
 #include "imap-util.h"
 
+enum mailbox_open_flags {
+	MAILBOX_OPEN_READONLY		= 0x01,
+	MAILBOX_OPEN_FAST		= 0x02,
+	MAILBOX_OPEN_MMAP_INVALIDATE	= 0x04
+};
+
 enum mailbox_list_flags {
 	MAILBOX_LIST_SUBSCRIBED	= 0x01,
 	MAILBOX_LIST_FAST_FLAGS	= 0x02,
@@ -148,7 +154,7 @@
 	   with possibly different readonly-state. */
 	struct mailbox *(*open_mailbox)(struct mail_storage *storage,
 					const char *name,
-					int readonly, int fast);
+					enum mailbox_open_flags flags);
 
 	/* name is allowed to contain multiple new hierarchy levels.
 	   If only_hierarchy is TRUE, the mailbox itself isn't created, just



More information about the dovecot-cvs mailing list