From: Josef Bacik Date: Fri, 7 Jun 2024 18:49:10 +0000 (-0400) Subject: libfuse: have passthrough_hp return an error with invalid mount options X-Git-Tag: fuse-3.17.1-rc0~110 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=c9204dbd0d70c79f926a2bc2bfdbb4629cdb303d;p=qemu-gpiodev%2Flibfuse.git 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 --- 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);