diff options
author | AKowshik <AKowshik@users.noreply.github.com> | 2020-09-10 00:47:06 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-09 20:17:06 +0100 |
commit | 86f40b858487ca218906f3306e5ec839d926f647 (patch) | |
tree | 0249956a4b49a6daa3b8d153b357272915fcfae3 /example/notify_store_retrieve.c | |
parent | dfb4054bb73fe55bb18392b4fb537b7584ccc096 (diff) | |
download | libfuse-86f40b858487ca218906f3306e5ec839d926f647.tar.gz |
Updated example code to work with new API (#547)
Diffstat (limited to 'example/notify_store_retrieve.c')
-rw-r--r-- | example/notify_store_retrieve.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/example/notify_store_retrieve.c b/example/notify_store_retrieve.c index 2cffacc..0a165c5 100644 --- a/example/notify_store_retrieve.c +++ b/example/notify_store_retrieve.c @@ -58,7 +58,7 @@ */ -#define FUSE_USE_VERSION 31 +#define FUSE_USE_VERSION 34 #include <fuse_lowlevel.h> #include <stdio.h> @@ -350,6 +350,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; pthread_t updater; int ret = -1; @@ -398,8 +399,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); + } assert(retrieve_status != 1); fuse_session_unmount(se); |