aboutsummaryrefslogtreecommitdiffstats
path: root/example/passthrough_hp.cc
diff options
context:
space:
mode:
authorBernd Schubert <bschubert@ddn.com>2023-09-15 17:21:20 +0200
committerNikolaus Rath <Nikolaus@rath.org>2023-09-23 14:41:31 +0100
commit98ee575ddb621a4ecff9b643924c0bee1b8200f1 (patch)
tree00df05610227ab8522c27b41127ae78758508124 /example/passthrough_hp.cc
parent7a9717e145916ae6612fa294b62fbd068e6b89ac (diff)
downloadlibfuse-98ee575ddb621a4ecff9b643924c0bee1b8200f1.tar.gz
passthrough-hp: Fix --clone-fd
Actually one had to use --clone-fd=1 instead of just --clone-fd.
Diffstat (limited to 'example/passthrough_hp.cc')
-rw-r--r--example/passthrough_hp.cc5
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)