]> wimlib.net Git - wimlib/commitdiff
Specify hard_remove option to fuse_main() when possible
authorEric Biggers <ebiggers3@gmail.com>
Mon, 17 Dec 2012 05:43:47 +0000 (23:43 -0600)
committerEric Biggers <ebiggers3@gmail.com>
Mon, 17 Dec 2012 05:43:47 +0000 (23:43 -0600)
src/mount_image.c

index 57983c5cccb2e1f931394855bdb234a9a63d9ed8..efb1e7214ccad87375b70fab5aaa19d2402c642c 100644 (file)
@@ -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.
         */
         * 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)) {
        argv[argc++] = "-o";
        argv[argc++] = optstring;
        if ((mount_flags & WIMLIB_MOUNT_FLAG_READWRITE)) {