[dovecot-cvs] dovecot/src/lib-index mail-index-lock.c,1.62,1.63

tss at dovecot.org tss at dovecot.org
Mon May 14 02:01:27 EEST 2007


Update of /var/lib/cvs/dovecot/src/lib-index
In directory talvi:/tmp/cvs-serv31258

Modified Files:
	mail-index-lock.c 
Log Message:
Log an error if pwrite_full() fails while overwriting index mapping.



Index: mail-index-lock.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-index/mail-index-lock.c,v
retrieving revision 1.62
retrieving revision 1.63
diff -u -d -r1.62 -r1.63
--- mail-index-lock.c	11 Mar 2007 18:03:55 -0000	1.62
+++ mail-index-lock.c	13 May 2007 23:01:25 -0000	1.63
@@ -384,8 +384,11 @@
 	} else {
 		/* write the modified parts. header is small enough to be
 		   always written, write_seq_* specifies the record range. */
-                if (mail_index_write_map_over(index) < 0)
+		if (mail_index_write_map_over(index) < 0) {
+			mail_index_set_error(index,
+				"pwrite_full(%s) failed: %m", index->filepath);
 			mail_index_set_inconsistent(index);
+		}
 	}
 
 	map->write_to_disk = FALSE;



More information about the dovecot-cvs mailing list