dovecot: Don't try to rmdir() the file to flush its file handle ...
dovecot at dovecot.org
dovecot at dovecot.org
Mon Nov 26 12:09:09 EET 2007
details: http://hg.dovecot.org/dovecot/rev/78922561e9ea
changeset: 6858:78922561e9ea
user: Timo Sirainen <tss at iki.fi>
date: Mon Nov 26 12:09:05 2007 +0200
description:
Don't try to rmdir() the file to flush its file handle with FreeBSD.
Although it appeared to work in my test program, looks like it doesn't
really work after all..
diffstat:
1 file changed, 5 deletions(-)
src/lib/nfs-workarounds.c | 5 -----
diffs (15 lines):
diff -r 41911abe6fa7 -r 78922561e9ea src/lib/nfs-workarounds.c
--- a/src/lib/nfs-workarounds.c Sun Nov 25 15:47:36 2007 +0200
+++ b/src/lib/nfs-workarounds.c Mon Nov 26 12:09:05 2007 +0200
@@ -322,11 +322,6 @@ static void nfs_flush_file_handle_cache_
void nfs_flush_file_handle_cache(const char *path)
{
-#ifdef __FreeBSD__
- /* Try to handle this more safely by rmdir()ing the file itself */
- if (nfs_flush_file_handle_cache_dir(path))
- return;
-#endif
nfs_flush_file_handle_cache_parent_dir(path);
}
More information about the dovecot-cvs
mailing list