From 646ff0bb3b87b7d6a72db9a5c56320bb048a300c Mon Sep 17 00:00:00 2001 From: Dharmendra singh Date: Fri, 8 Apr 2022 09:57:07 +0000 Subject: 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) --- example/passthrough_ll.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) 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] \n\n", argv[0]); fuse_cmdline_help(); fuse_lowlevel_help(); + passthrough_ll_help(); ret = 0; goto err_out1; } else if (opts.show_version) { -- cgit v1.2.1