diff options
author | Bernd Schubert <bschubert@ddn.com> | 2023-09-15 17:21:20 +0200 |
---|---|---|
committer | Nikolaus Rath <Nikolaus@rath.org> | 2023-09-23 14:41:31 +0100 |
commit | 98ee575ddb621a4ecff9b643924c0bee1b8200f1 (patch) | |
tree | 00df05610227ab8522c27b41127ae78758508124 | |
parent | 7a9717e145916ae6612fa294b62fbd068e6b89ac (diff) | |
download | libfuse-98ee575ddb621a4ecff9b643924c0bee1b8200f1.tar.gz |
passthrough-hp: Fix --clone-fd
Actually one had to use --clone-fd=1 instead of
just --clone-fd.
-rw-r--r-- | example/passthrough_hp.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/example/passthrough_hp.cc b/example/passthrough_hp.cc index 7e3d4ab..8524eef 100644 --- a/example/passthrough_hp.cc +++ b/example/passthrough_hp.cc @@ -1220,8 +1220,7 @@ static cxxopts::ParseResult parse_options(int argc, char **argv) { "you are doing)", cxxopts::value(mount_options)) ("num-threads", "Number of libfuse worker threads", cxxopts::value<int>()->default_value(SFS_DEFAULT_THREADS)) - ("clone-fd", "use separate fuse device fd for each thread", - cxxopts::value<bool>()->implicit_value(SFS_DEFAULT_CLONE_FD)) + ("clone-fd", "use separate fuse device fd for each thread") ("direct-io", "enable fuse kernel internal direct-io"); @@ -1253,7 +1252,7 @@ static cxxopts::ParseResult parse_options(int argc, char **argv) { fs.nosplice = options.count("nosplice") != 0; fs.num_threads = options["num-threads"].as<int>(); - fs.clone_fd = options["clone-fd"].as<bool>(); + fs.clone_fd = options.count("clone-fd"); fs.direct_io = options.count("direct-io"); char* resolved_path = realpath(argv[1], NULL); if (resolved_path == NULL) |