diff --git a/src/runtime/runtime.c b/src/runtime/runtime.c index 0264b70..f4d1ec6 100644 --- a/src/runtime/runtime.c +++ b/src/runtime/runtime.c @@ -998,6 +998,7 @@ int fusefs_main(int argc, char* argv[], void (* mounted)(void)) { sqfs_ll* ll; struct fuse_opt fuse_opts[] = { {"offset=%zu", offsetof(sqfs_opts, offset), 0}, + {"auto_unmount", 0}, {"timeout=%u", offsetof(sqfs_opts, idle_timeout_secs), 0}, {"fsname=squashfuse", 0}, {"subtype=squashfuse", 0}, @@ -1030,7 +1031,7 @@ int fusefs_main(int argc, char* argv[], void (* mounted)(void)) { opts.image = NULL; opts.mountpoint = 0; opts.offset = 0; - opts.idle_timeout_secs = 0; + opts.idle_timeout_secs = 1; if (fuse_opt_parse(&args, &opts, fuse_opts, sqfs_opt_proc) == -1) sqfs_usage(argv[0], true, true);