Passthrough_ll should display cmd line options
authorDharmendra singh <dsingh@ddn.com>
Fri, 8 Apr 2022 09:57:07 +0000 (09:57 +0000)
committerNikolaus Rath <Nikolaus@rath.org>
Fri, 8 Apr 2022 14:36:01 +0000 (15:36 +0100)
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

index 8fdf887101590b78a4eacb5329e40f9036dcd08b..a1d237a6209bc933c4f9ebd5b1be89491e81ce77 100644 (file)
@@ -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) {