git.annexia.org
/
libguestfs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
366339d
)
fuse: Fix hard link creation.
author
Richard Jones
<rjones@redhat.com>
Tue, 17 Nov 2009 17:02:15 +0000
(17:02 +0000)
committer
Richard Jones
<rjones@redhat.com>
Tue, 17 Nov 2009 17:47:47 +0000
(17:47 +0000)
The parameters were swapped. We also need to invalidate the
cache for both parameters.
fuse/guestmount.c
patch
|
blob
|
history
diff --git
a/fuse/guestmount.c
b/fuse/guestmount.c
index
ce578c1
..
ed8b08c
100644
(file)
--- a/
fuse/guestmount.c
+++ b/
fuse/guestmount.c
@@
-461,9
+461,10
@@
fg_link (const char *from, const char *to)
if (read_only) return -EROFS;
+ dir_cache_invalidate (from);
dir_cache_invalidate (to);
- r = guestfs_ln (g,
to, from
);
+ r = guestfs_ln (g,
from, to
);
if (r == -1)
return error ();