From: Eric Biggers Date: Mon, 17 Dec 2012 05:43:47 +0000 (-0600) Subject: Specify hard_remove option to fuse_main() when possible X-Git-Tag: v1.2.1~40 X-Git-Url: https://wimlib.net/git/?p=wimlib;a=commitdiff_plain;h=31cea10bc58ea3067c711c47a266cc68f34459d9;hp=8f16067f71da5f45eda84813e9a07e68641bc283 Specify hard_remove option to fuse_main() when possible --- 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)) {