changeset 6858:78922561e9ea HEAD

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..
author Timo Sirainen <tss@iki.fi>
date Mon, 26 Nov 2007 12:09:05 +0200
parents 41911abe6fa7
children 64e0f45e8dc3
files src/lib/nfs-workarounds.c
diffstat 1 files changed, 0 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- 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 @@
 
 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);
 }