diff options
author | Richard Jones <rjones@redhat.com> | 2009-11-17 17:01:19 +0000 |
---|---|---|
committer | Richard Jones <rjones@redhat.com> | 2009-11-17 17:47:47 +0000 |
commit | dcd08dd356ca361703f4f2a2e25b639b219ac40d (patch) | |
tree | 4b2b63297a38226465ab926b341151a590f0412f /fuse | |
parent | a15f118e3b2221e68732ad0545f770b3324d593b (diff) | |
download | libguestfs-dcd08dd356ca361703f4f2a2e25b639b219ac40d.tar.gz libguestfs-dcd08dd356ca361703f4f2a2e25b639b219ac40d.tar.xz libguestfs-dcd08dd356ca361703f4f2a2e25b639b219ac40d.zip |
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.
Diffstat (limited to 'fuse')
-rw-r--r-- | fuse/guestmount.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fuse/guestmount.c b/fuse/guestmount.c index ed8b08c1..baf2b667 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 |