[dovecot-cvs] dovecot/src/lib-index mail-index.c, 1.228,
1.229 mail-transaction-log.c, 1.110, 1.111
tss-movial at dovecot.org
tss-movial at dovecot.org
Tue Apr 25 16:40:22 EEST 2006
Update of /var/lib/cvs/dovecot/src/lib-index
In directory talvi:/tmp/cvs-serv5366/src/lib-index
Modified Files:
mail-index.c mail-transaction-log.c
Log Message:
Added nfs_safe_stat() to transparently work around ESTALE with stat().
Index: mail-index.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-index/mail-index.c,v
retrieving revision 1.228
retrieving revision 1.229
diff -u -d -r1.228 -r1.229
--- mail-index.c 24 Apr 2006 09:17:20 -0000 1.228
+++ mail-index.c 25 Apr 2006 13:40:20 -0000 1.229
@@ -1664,7 +1664,7 @@
}
return mail_index_set_syscall_error(index, "fstat()");
}
- if (stat(index->filepath, &st2) < 0) {
+ if (nfs_safe_stat(index->filepath, &st2) < 0) {
mail_index_set_syscall_error(index, "stat()");
if (errno != ENOENT)
return -1;
Index: mail-transaction-log.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-index/mail-transaction-log.c,v
retrieving revision 1.110
retrieving revision 1.111
diff -u -d -r1.110 -r1.111
--- mail-transaction-log.c 26 Feb 2006 10:32:19 -0000 1.110
+++ mail-transaction-log.c 25 Apr 2006 13:40:20 -0000 1.111
@@ -920,7 +920,7 @@
path = t_strconcat(log->index->filepath,
MAIL_TRANSACTION_LOG_SUFFIX, NULL);
- if (stat(path, &st) < 0) {
+ if (nfs_safe_stat(path, &st) < 0) {
mail_index_file_set_syscall_error(log->index, path, "stat()");
return -1;
}
More information about the dovecot-cvs
mailing list