From a15f118e3b2221e68732ad0545f770b3324d593b Mon Sep 17 00:00:00 2001 From: Richard Jones Date: Tue, 17 Nov 2009 17:02:15 +0000 Subject: [PATCH] fuse: Fix hard link creation. The parameters were swapped. We also need to invalidate the cache for both parameters. --- fuse/guestmount.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fuse/guestmount.c b/fuse/guestmount.c index ce578c1..ed8b08c 100644 --- 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 (); -- 1.8.3.1