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

cras at procontrol.fi cras at procontrol.fi
Wed Apr 28 05:00:42 EEST 2004


Update of /home/cvs/dovecot/src/lib-storage/index
In directory talvi:/tmp/cvs-serv830/src/lib-storage/index

Modified Files:
	index-storage.c 
Log Message:
Added fcntl_lock_disable setting to allow indexes to work with NFS. Some
other locking fixes.



Index: index-storage.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib-storage/index/index-storage.c,v
retrieving revision 1.43
retrieving revision 1.44
diff -u -d -r1.43 -r1.44
--- index-storage.c	28 Apr 2004 00:21:01 -0000	1.43
+++ index-storage.c	28 Apr 2004 02:00:39 -0000	1.44
@@ -316,6 +316,8 @@
 		index_flags |= MAIL_INDEX_OPEN_FLAG_MMAP_DISABLE;
 	if (getenv("MMAP_NO_WRITE") != NULL)
 		index_flags |= MAIL_INDEX_OPEN_FLAG_MMAP_NO_WRITE;
+	if (getenv("FCNTL_LOCKS_DISABLE") != NULL)
+		index_flags |= MAIL_INDEX_OPEN_FLAG_FCNTL_LOCKS_DISABLE;
 
 	do {
 		ibox = i_new(struct index_mailbox, 1);



More information about the dovecot-cvs mailing list