[dovecot-cvs] dovecot/src/lib-storage/index/mbox mbox-save.c, 1.94.2.9, 1.94.2.10

tss at dovecot.org tss at dovecot.org
Sat Mar 10 22:58:48 EET 2007


Update of /var/lib/cvs/dovecot/src/lib-storage/index/mbox
In directory talvi:/tmp/cvs-serv3338/src/lib-storage/index/mbox

Modified Files:
      Tag: branch_1_0
	mbox-save.c 
Log Message:
Added fsync_disable setting.



Index: mbox-save.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/index/mbox/mbox-save.c,v
retrieving revision 1.94.2.9
retrieving revision 1.94.2.10
diff -u -d -r1.94.2.9 -r1.94.2.10
--- mbox-save.c	7 Mar 2007 15:38:20 -0000	1.94.2.9
+++ mbox-save.c	10 Mar 2007 20:58:45 -0000	1.94.2.10
@@ -674,7 +674,7 @@
 	}
 
 	if (!ctx->synced && ctx->mbox->mbox_fd != -1 &&
-	    !ctx->mbox->mbox_writeonly) {
+	    !ctx->mbox->mbox_writeonly && !ctx->mbox->ibox.fsync_disable) {
 		if (fdatasync(ctx->mbox->mbox_fd) < 0) {
 			mbox_set_syscall_error(ctx->mbox, "fdatasync()");
 			ret = -1;



More information about the dovecot-cvs mailing list