Skip to content

Commit 92caa2e

Browse files
authored
auto_unmount (#93)
Closes #92 * auto_unmount * opts.idle_timeout_secs = 1
1 parent c811634 commit 92caa2e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/runtime/runtime.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -998,6 +998,7 @@ int fusefs_main(int argc, char* argv[], void (* mounted)(void)) {
998998
sqfs_ll* ll;
999999
struct fuse_opt fuse_opts[] = {
10001000
{"offset=%zu", offsetof(sqfs_opts, offset), 0},
1001+
{"auto_unmount", 0},
10011002
{"timeout=%u", offsetof(sqfs_opts, idle_timeout_secs), 0},
10021003
{"fsname=squashfuse", 0},
10031004
{"subtype=squashfuse", 0},
@@ -1030,7 +1031,7 @@ int fusefs_main(int argc, char* argv[], void (* mounted)(void)) {
10301031
opts.image = NULL;
10311032
opts.mountpoint = 0;
10321033
opts.offset = 0;
1033-
opts.idle_timeout_secs = 0;
1034+
opts.idle_timeout_secs = 1;
10341035
if (fuse_opt_parse(&args, &opts, fuse_opts, sqfs_opt_proc) == -1)
10351036
sqfs_usage(argv[0], true, true);
10361037

0 commit comments

Comments
 (0)