From: Richard Jones Date: Tue, 17 Nov 2009 17:01:19 +0000 (+0000) Subject: fuse: Fix cache invalidation in rename operation. X-Git-Tag: 1.0.79~8 X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=commitdiff_plain;h=dcd08dd356ca361703f4f2a2e25b639b219ac40d fuse: Fix cache invalidation in rename operation. We need to invalidate both parameters, otherwise the old (moved) file can appear that it still exists after the move. --- diff --git a/fuse/guestmount.c b/fuse/guestmount.c index ed8b08c..baf2b66 100644 --- a/fuse/guestmount.c +++ b/fuse/guestmount.c @@ -441,6 +441,7 @@ fg_rename (const char *from, const char *to) if (read_only) return -EROFS; + dir_cache_invalidate (from); dir_cache_invalidate (to); /* XXX It's not clear how close the 'mv' command is to the