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

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