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/invalidate_path.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'example/invalidate_path.c') diff --git a/example/invalidate_path.c b/example/invalidate_path.c index 09df178..61ec351 100644 --- a/example/invalidate_path.c +++ b/example/invalidate_path.c @@ -25,7 +25,7 @@ * \include @file */ -#define FUSE_USE_VERSION 31 +#define FUSE_USE_VERSION 34 #include #include /* for fuse_cmdline_opts */ @@ -212,6 +212,7 @@ int main(int argc, char *argv[]) { struct fuse_args args = FUSE_ARGS_INIT(argc, argv); struct fuse *fuse; struct fuse_cmdline_opts opts; + struct fuse_loop_config config; int res; /* Initialize the files */ @@ -271,8 +272,11 @@ int main(int argc, char *argv[]) { if (opts.singlethread) res = fuse_loop(fuse); - else - res = fuse_loop_mt(fuse, opts.clone_fd); + else { + config.clone_fd = opts.clone_fd; + config.max_idle_threads = opts.max_idle_threads; + res = fuse_loop_mt(fuse, &config); + } if (res) res = 1; -- cgit v1.2.3