Blame 0117-virtiofsd-add-some-options-to-the-help-message.patch

1d442b
From: Masayoshi Mizuma <m.mizuma@jp.fujitsu.com>
1d442b
Date: Mon, 27 Jan 2020 19:02:26 +0000
1d442b
Subject: [PATCH] virtiofsd: add some options to the help message
1d442b
1d442b
Add following options to the help message:
1d442b
- cache
1d442b
- flock|no_flock
1d442b
- norace
1d442b
- posix_lock|no_posix_lock
1d442b
- readdirplus|no_readdirplus
1d442b
- timeout
1d442b
- writeback|no_writeback
1d442b
- xattr|no_xattr
1d442b
1d442b
Signed-off-by: Masayoshi Mizuma <m.mizuma@jp.fujitsu.com>
1d442b
1d442b
dgilbert: Split cache, norace, posix_lock, readdirplus off
1d442b
  into our own earlier patches that added the options
1d442b
1d442b
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
1d442b
Reviewed-by: Misono Tomohiro <misono.tomohiro@jp.fujitsu.com>
1d442b
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
1d442b
(cherry picked from commit 1d59b1b210d7c3b0bdf4b10ebe0bb1fccfcb8b95)
1d442b
---
1d442b
 tools/virtiofsd/helper.c | 10 +++++++++-
1d442b
 1 file changed, 9 insertions(+), 1 deletion(-)
1d442b
1d442b
diff --git a/tools/virtiofsd/helper.c b/tools/virtiofsd/helper.c
1d442b
index f98d8f2eb2..0801cf752c 100644
1d442b
--- a/tools/virtiofsd/helper.c
1d442b
+++ b/tools/virtiofsd/helper.c
1d442b
@@ -148,6 +148,8 @@ void fuse_cmdline_help(void)
1d442b
            "    -o cache=<mode>            cache mode. could be one of \"auto, "
1d442b
            "always, none\"\n"
1d442b
            "                               default: auto\n"
1d442b
+           "    -o flock|no_flock          enable/disable flock\n"
1d442b
+           "                               default: no_flock\n"
1d442b
            "    -o log_level=<level>       log level, default to \"info\"\n"
1d442b
            "                               level could be one of \"debug, "
1d442b
            "info, warn, err\"\n"
1d442b
@@ -163,7 +165,13 @@ void fuse_cmdline_help(void)
1d442b
            "                               enable/disable readirplus\n"
1d442b
            "                               default: readdirplus except with "
1d442b
            "cache=none\n"
1d442b
-          );
1d442b
+           "    -o timeout=<number>        I/O timeout (second)\n"
1d442b
+           "                               default: depends on cache= option.\n"
1d442b
+           "    -o writeback|no_writeback  enable/disable writeback cache\n"
1d442b
+           "                               default: no_writeback\n"
1d442b
+           "    -o xattr|no_xattr          enable/disable xattr\n"
1d442b
+           "                               default: no_xattr\n"
1d442b
+           );
1d442b
 }
1d442b
 
1d442b
 static int fuse_helper_opt_proc(void *data, const char *arg, int key,