diff options
Diffstat (limited to 'example/passthrough_ll.c')
-rw-r--r-- | example/passthrough_ll.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/example/passthrough_ll.c b/example/passthrough_ll.c index 06bb50f..0e7535c 100644 --- a/example/passthrough_ll.c +++ b/example/passthrough_ll.c @@ -35,7 +35,7 @@ */ #define _GNU_SOURCE -#define FUSE_USE_VERSION 31 +#define FUSE_USE_VERSION 34 #include "config.h" @@ -1156,6 +1156,7 @@ int main(int argc, char *argv[]) struct fuse_args args = FUSE_ARGS_INIT(argc, argv); struct fuse_session *se; struct fuse_cmdline_opts opts; + struct fuse_loop_config config; struct lo_data lo = { .debug = 0, .writeback = 0 }; int ret = -1; @@ -1255,8 +1256,11 @@ int main(int argc, char *argv[]) /* Block until ctrl+c or fusermount -u */ if (opts.singlethread) ret = fuse_session_loop(se); - else - ret = fuse_session_loop_mt(se, opts.clone_fd); + else { + config.clone_fd = opts.clone_fd; + config.max_idle_threads = opts.max_idle_threads; + ret = fuse_session_loop_mt(se, &config); + } fuse_session_unmount(se); err_out3: |