aboutsummaryrefslogtreecommitdiffstats
path: root/example/invalidate_path.c
diff options
context:
space:
mode:
Diffstat (limited to 'example/invalidate_path.c')
-rw-r--r--example/invalidate_path.c10
1 files changed, 7 insertions, 3 deletions
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 <fuse.h>
#include <fuse_lowlevel.h> /* 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;