|
|
495e37 |
From 0f4592f79f8c24f84db18a8c39c6056b2a0be524 Mon Sep 17 00:00:00 2001
|
|
|
495e37 |
From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= <philmd@redhat.com>
|
|
|
495e37 |
Date: Fri, 7 Jan 2022 11:54:19 +0100
|
|
|
495e37 |
Subject: [PATCH 1/5] qemu-storage-daemon: Add vhost-user-blk help
|
|
|
495e37 |
MIME-Version: 1.0
|
|
|
495e37 |
Content-Type: text/plain; charset=UTF-8
|
|
|
495e37 |
Content-Transfer-Encoding: 8bit
|
|
|
495e37 |
|
|
|
495e37 |
RH-Author: Kevin Wolf <kwolf@redhat.com>
|
|
|
495e37 |
RH-MergeRequest: 63: qemu-storage-daemon: Add vhost-user-blk help
|
|
|
495e37 |
RH-Commit: [1/2] 6b08fec5d6ceea9f8f3810321099310069e08b53 (kmwolf/centos-qemu-kvm)
|
|
|
495e37 |
RH-Bugzilla: 1962088
|
|
|
495e37 |
RH-Acked-by: Miroslav Rezanina <mrezanin@redhat.com>
|
|
|
495e37 |
RH-Acked-by: Stefano Garzarella <sgarzare@redhat.com>
|
|
|
495e37 |
RH-Acked-by: Hanna Reitz <hreitz@redhat.com>
|
|
|
495e37 |
|
|
|
495e37 |
Add missing vhost-user-blk help:
|
|
|
495e37 |
|
|
|
495e37 |
$ qemu-storage-daemon -h
|
|
|
495e37 |
...
|
|
|
495e37 |
--export [type=]vhost-user-blk,id=<id>,node-name=<node-name>,
|
|
|
495e37 |
addr.type=unix,addr.path=<socket-path>[,writable=on|off]
|
|
|
495e37 |
[,logical-block-size=<block-size>][,num-queues=<num-queues>]
|
|
|
495e37 |
export the specified block node as a
|
|
|
495e37 |
vhosts-user-blk device over UNIX domain socket
|
|
|
495e37 |
--export [type=]vhost-user-blk,id=<id>,node-name=<node-name>,
|
|
|
495e37 |
fd,addr.str=<fd>[,writable=on|off]
|
|
|
495e37 |
[,logical-block-size=<block-size>][,num-queues=<num-queues>]
|
|
|
495e37 |
export the specified block node as a
|
|
|
495e37 |
vhosts-user-blk device over file descriptor
|
|
|
495e37 |
...
|
|
|
495e37 |
|
|
|
495e37 |
Fixes: 90fc91d50b7 ("convert vhost-user-blk server to block export API")
|
|
|
495e37 |
Reported-by: Qing Wang <qinwang@redhat.com>
|
|
|
495e37 |
Reviewed-by: Eric Blake <eblake@redhat.com>
|
|
|
495e37 |
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
|
|
|
495e37 |
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
|
|
|
495e37 |
Message-Id: <20220107105420.395011-3-f4bug@amsat.org>
|
|
|
495e37 |
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
|
|
|
495e37 |
(cherry picked from commit c8cbc9524269d9583749aaaea8aa244add7e1900)
|
|
|
495e37 |
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
|
|
|
495e37 |
---
|
|
|
495e37 |
storage-daemon/qemu-storage-daemon.c | 13 +++++++++++++
|
|
|
495e37 |
1 file changed, 13 insertions(+)
|
|
|
495e37 |
|
|
|
495e37 |
diff --git a/storage-daemon/qemu-storage-daemon.c b/storage-daemon/qemu-storage-daemon.c
|
|
|
495e37 |
index 52cf17e8ac..9d76d1114d 100644
|
|
|
495e37 |
--- a/storage-daemon/qemu-storage-daemon.c
|
|
|
495e37 |
+++ b/storage-daemon/qemu-storage-daemon.c
|
|
|
495e37 |
@@ -104,6 +104,19 @@ static void help(void)
|
|
|
495e37 |
" export the specified block node over FUSE\n"
|
|
|
495e37 |
"\n"
|
|
|
495e37 |
#endif /* CONFIG_FUSE */
|
|
|
495e37 |
+#ifdef CONFIG_VHOST_USER_BLK_SERVER
|
|
|
495e37 |
+" --export [type=]vhost-user-blk,id=<id>,node-name=<node-name>,\n"
|
|
|
495e37 |
+" addr.type=unix,addr.path=<socket-path>[,writable=on|off]\n"
|
|
|
495e37 |
+" [,logical-block-size=<block-size>][,num-queues=<num-queues>]\n"
|
|
|
495e37 |
+" export the specified block node as a\n"
|
|
|
495e37 |
+" vhost-user-blk device over UNIX domain socket\n"
|
|
|
495e37 |
+" --export [type=]vhost-user-blk,id=<id>,node-name=<node-name>,\n"
|
|
|
495e37 |
+" fd,addr.str=<fd>[,writable=on|off]\n"
|
|
|
495e37 |
+" [,logical-block-size=<block-size>][,num-queues=<num-queues>]\n"
|
|
|
495e37 |
+" export the specified block node as a\n"
|
|
|
495e37 |
+" vhost-user-blk device over file descriptor\n"
|
|
|
495e37 |
+"\n"
|
|
|
495e37 |
+#endif /* CONFIG_VHOST_USER_BLK_SERVER */
|
|
|
495e37 |
" --monitor [chardev=]name[,mode=control][,pretty[=on|off]]\n"
|
|
|
495e37 |
" configure a QMP monitor\n"
|
|
|
495e37 |
"\n"
|
|
|
495e37 |
--
|
|
|
495e37 |
2.27.0
|
|
|
495e37 |
|