Mercurial > dovecot > original-hg > dovecot-1.2
changeset 7316:258477a3f1e7 HEAD
Don't try to flush NFS file handle cache for mbox files.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sun, 02 Mar 2008 06:34:34 +0200 |
parents | 3f53f528d338 |
children | 92cd0509b2b9 |
files | src/lib-storage/index/mbox/mbox-lock.c |
diffstat | 1 files changed, 4 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-storage/index/mbox/mbox-lock.c Sun Mar 02 06:23:59 2008 +0200 +++ b/src/lib-storage/index/mbox/mbox-lock.c Sun Mar 02 06:34:34 2008 +0200 @@ -171,9 +171,10 @@ return 0; if (mbox->mbox_fd != -1) { - if ((mbox->storage->storage.flags & - MAIL_STORAGE_FLAG_NFS_FLUSH_STORAGE) != 0) - nfs_flush_file_handle_cache(mbox->path); + /* we could flush NFS file handle cache here if we wanted to + be sure that the file is latest, but mbox files get rarely + deleted and the flushing might cause errors (e.g. EBUSY for + trying to flush a /var/mail mountpoint) */ if (nfs_safe_stat(mbox->path, &st) < 0) { mbox_set_syscall_error(mbox, "stat()"); return -1;