cryptospore / rpms / qemu-kvm

Forked from rpms/qemu-kvm 2 years ago
Clone

Blame SOURCES/kvm-virtiofsd-add-some-options-to-the-help-message.patch

ddf19c
From 6d62abb99b6b918f05f099b01a99f4326a69d650 Mon Sep 17 00:00:00 2001
ddf19c
From: "Dr. David Alan Gilbert" <dgilbert@redhat.com>
ddf19c
Date: Mon, 27 Jan 2020 19:02:26 +0100
ddf19c
Subject: [PATCH 115/116] virtiofsd: add some options to the help message
ddf19c
MIME-Version: 1.0
ddf19c
Content-Type: text/plain; charset=UTF-8
ddf19c
Content-Transfer-Encoding: 8bit
ddf19c
ddf19c
RH-Author: Dr. David Alan Gilbert <dgilbert@redhat.com>
ddf19c
Message-id: <20200127190227.40942-112-dgilbert@redhat.com>
ddf19c
Patchwork-id: 93565
ddf19c
O-Subject: [RHEL-AV-8.2 qemu-kvm PATCH 111/112] virtiofsd: add some options to the help message
ddf19c
Bugzilla: 1694164
ddf19c
RH-Acked-by: Philippe Mathieu-Daudé <philmd@redhat.com>
ddf19c
RH-Acked-by: Stefan Hajnoczi <stefanha@redhat.com>
ddf19c
RH-Acked-by: Sergio Lopez Pascual <slp@redhat.com>
ddf19c
ddf19c
From: Masayoshi Mizuma <m.mizuma@jp.fujitsu.com>
ddf19c
ddf19c
Add following options to the help message:
ddf19c
- cache
ddf19c
- flock|no_flock
ddf19c
- norace
ddf19c
- posix_lock|no_posix_lock
ddf19c
- readdirplus|no_readdirplus
ddf19c
- timeout
ddf19c
- writeback|no_writeback
ddf19c
- xattr|no_xattr
ddf19c
ddf19c
Signed-off-by: Masayoshi Mizuma <m.mizuma@jp.fujitsu.com>
ddf19c
ddf19c
dgilbert: Split cache, norace, posix_lock, readdirplus off
ddf19c
  into our own earlier patches that added the options
ddf19c
ddf19c
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
ddf19c
Reviewed-by: Misono Tomohiro <misono.tomohiro@jp.fujitsu.com>
ddf19c
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
ddf19c
(cherry picked from commit 1d59b1b210d7c3b0bdf4b10ebe0bb1fccfcb8b95)
ddf19c
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
ddf19c
---
ddf19c
 tools/virtiofsd/helper.c | 10 +++++++++-
ddf19c
 1 file changed, 9 insertions(+), 1 deletion(-)
ddf19c
ddf19c
diff --git a/tools/virtiofsd/helper.c b/tools/virtiofsd/helper.c
ddf19c
index f98d8f2..0801cf7 100644
ddf19c
--- a/tools/virtiofsd/helper.c
ddf19c
+++ b/tools/virtiofsd/helper.c
ddf19c
@@ -148,6 +148,8 @@ void fuse_cmdline_help(void)
ddf19c
            "    -o cache=<mode>            cache mode. could be one of \"auto, "
ddf19c
            "always, none\"\n"
ddf19c
            "                               default: auto\n"
ddf19c
+           "    -o flock|no_flock          enable/disable flock\n"
ddf19c
+           "                               default: no_flock\n"
ddf19c
            "    -o log_level=<level>       log level, default to \"info\"\n"
ddf19c
            "                               level could be one of \"debug, "
ddf19c
            "info, warn, err\"\n"
ddf19c
@@ -163,7 +165,13 @@ void fuse_cmdline_help(void)
ddf19c
            "                               enable/disable readirplus\n"
ddf19c
            "                               default: readdirplus except with "
ddf19c
            "cache=none\n"
ddf19c
-          );
ddf19c
+           "    -o timeout=<number>        I/O timeout (second)\n"
ddf19c
+           "                               default: depends on cache= option.\n"
ddf19c
+           "    -o writeback|no_writeback  enable/disable writeback cache\n"
ddf19c
+           "                               default: no_writeback\n"
ddf19c
+           "    -o xattr|no_xattr          enable/disable xattr\n"
ddf19c
+           "                               default: no_xattr\n"
ddf19c
+           );
ddf19c
 }
ddf19c
 
ddf19c
 static int fuse_helper_opt_proc(void *data, const char *arg, int key,
ddf19c
-- 
ddf19c
1.8.3.1
ddf19c