From 86f40b858487ca218906f3306e5ec839d926f647 Mon Sep 17 00:00:00 2001 From: AKowshik Date: Thu, 10 Sep 2020 00:47:06 +0530 Subject: Updated example code to work with new API (#547) --- example/hello_ll.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'example/hello_ll.c') diff --git a/example/hello_ll.c b/example/hello_ll.c index 668d81b..1db5eff 100644 --- a/example/hello_ll.c +++ b/example/hello_ll.c @@ -18,7 +18,7 @@ * \include hello_ll.c */ -#define FUSE_USE_VERSION 31 +#define FUSE_USE_VERSION 34 #include #include @@ -166,6 +166,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; int ret = -1; if (fuse_parse_cmdline(&args, &opts) != 0) @@ -206,8 +207,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: -- cgit v1.2.3