* \include hello_ll.c
*/
-#define FUSE_USE_VERSION 31
+#define FUSE_USE_VERSION 34
#include <fuse_lowlevel.h>
#include <stdio.h>
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)
/* 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:
* \include @file
*/
-#define FUSE_USE_VERSION 31
+#define FUSE_USE_VERSION 34
#include <fuse.h>
#include <fuse_lowlevel.h> /* for fuse_cmdline_opts */
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 */
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;
*/
-#define FUSE_USE_VERSION 31
+#define FUSE_USE_VERSION 34
#include <fuse_lowlevel.h>
#include <stdio.h>
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;
/* 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:
*/
-#define FUSE_USE_VERSION 31
+#define FUSE_USE_VERSION 34
#include <fuse_lowlevel.h>
#include <stdio.h>
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;
/* 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:
*/
-#define FUSE_USE_VERSION 31
+#define FUSE_USE_VERSION 34
#include <fuse_lowlevel.h>
#include <stdio.h>
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;
/* 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);
*/
#define _GNU_SOURCE
-#define FUSE_USE_VERSION 31
+#define FUSE_USE_VERSION 34
#include "config.h"
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;
/* 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: