summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDharmendra singh <dsingh@ddn.com>2022-04-08 09:57:07 +0000
committerNikolaus Rath <Nikolaus@rath.org>2022-04-08 15:36:01 +0100
commit646ff0bb3b87b7d6a72db9a5c56320bb048a300c (patch)
treea9e69593154f66ecef082781b11a284266a9b776
parent4df08719f3415cde6f802a755922b7f76e198cd7 (diff)
downloadfuse-646ff0bb3b87b7d6a72db9a5c56320bb048a300c.tar.gz
Passthrough_ll should display cmd line options
Make passthrough_ll to display all its cmdline options instead of keeping them hidden. (I am not sure if these are intentionally kept hidden)
-rw-r--r--example/passthrough_ll.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/example/passthrough_ll.c b/example/passthrough_ll.c
index 8fdf887..a1d237a 100644
--- a/example/passthrough_ll.c
+++ b/example/passthrough_ll.c
@@ -127,6 +127,23 @@ static const struct fuse_opt lo_opts[] = {
FUSE_OPT_END
};
+static void passthrough_ll_help(void)
+{
+ printf(
+" -o writeback Enable writeback\n"
+" -o no_writeback Disable write back\n"
+" -o source=/home/dir Source directory to be mounted\n"
+" -o flock Enable flock\n"
+" -o no_flock Disable flock\n"
+" -o xattr Enable xattr\n"
+" -o no_xattr Disable xattr\n"
+" -o timeout=1.0 Caching timeout\n"
+" -o timeout=0/1 Timeout is set\n"
+" -o cache=never Disable cache\n"
+" -o cache=auto Auto enable cache\n"
+" -o cache=always Cache always\n");
+}
+
static struct lo_data *lo_data(fuse_req_t req)
{
return (struct lo_data *) fuse_req_userdata(req);
@@ -1187,6 +1204,7 @@ int main(int argc, char *argv[])
printf("usage: %s [options] <mountpoint>\n\n", argv[0]);
fuse_cmdline_help();
fuse_lowlevel_help();
+ passthrough_ll_help();
ret = 0;
goto err_out1;
} else if (opts.show_version) {