aboutsummaryrefslogtreecommitdiffstats
path: root/example
diff options
context:
space:
mode:
authorJosef Bacik <josef@toxicpanda.com>2024-06-07 14:49:10 -0400
committerBernd Schubert <bernd.schubert@fastmail.fm>2024-06-07 21:33:04 +0200
commitc9204dbd0d70c79f926a2bc2bfdbb4629cdb303d (patch)
treee97a1bce6cffb07a76d45720c3c06c94e4aaa921 /example
parent2105cd7724a714a874eb991f37f1ffdbed3256bd (diff)
downloadlibfuse-c9204dbd0d70c79f926a2bc2bfdbb4629cdb303d.tar.gz
libfuse: have passthrough_hp return an error with invalid mount options
generic/003 fails currently because if you specify -o relatime we will fail to mount, but not return an error, so the test thinks that we support relatime and then hilarity ensues. Set ret so that if we get any failures while trying to mount we will properly error out. Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Diffstat (limited to 'example')
-rw-r--r--example/passthrough_hp.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/example/passthrough_hp.cc b/example/passthrough_hp.cc
index e780f23..02f77f5 100644
--- a/example/passthrough_hp.cc
+++ b/example/passthrough_hp.cc
@@ -1421,6 +1421,7 @@ int main(int argc, char *argv[]) {
(fs.debug_fuse && fuse_opt_add_arg(&args, "-odebug")))
errx(3, "ERROR: Out of memory");
+ ret = -1;
fuse_lowlevel_ops sfs_oper {};
assign_operations(sfs_oper);
auto se = fuse_session_new(&args, &sfs_oper, sizeof(sfs_oper), &fs);