From 31cea10bc58ea3067c711c47a266cc68f34459d9 Mon Sep 17 00:00:00 2001 From: Eric Biggers Date: Sun, 16 Dec 2012 23:43:47 -0600 Subject: [PATCH 1/1] Specify hard_remove option to fuse_main() when possible --- src/mount_image.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/mount_image.c b/src/mount_image.c index 57983c5c..efb1e721 100644 --- a/src/mount_image.c +++ b/src/mount_image.c @@ -2257,7 +2257,14 @@ WIMLIBAPI int wimlib_mount_image(WIMStruct *wim, int image, const char *dir, * assign_inode_numbers() function, and the static variable @next_ino is * set to the next available inode number. */ - char optstring[256] = "use_ino,subtype=wimfs,attr_timeout=0"; + char optstring[256] = + "use_ino" + ",subtype=wimfs" + ",attr_timeout=0" +#if FUSE_MAJOR_VERSION > 2 || (FUSE_MAJOR_VERSION == 2 && FUSE_MINOR_VERSION >= 8) + ",hard_remove" +#endif + ; argv[argc++] = "-o"; argv[argc++] = optstring; if ((mount_flags & WIMLIB_MOUNT_FLAG_READWRITE)) { -- 2.43.0