From 3c3566a8a2577f4c879a9bf2f738b9307aff3534 Mon Sep 17 00:00:00 2001 From: imxcc Date: Tue, 8 Mar 2022 11:58:12 +0800 Subject: [PATCH] virsh: Display vhostuser socket path in domblklist The domblklist command is designed to show a brief information about the blocks of a domain. One piece of information that is shows is "Target" and "Source". Before the modification, the Vhost disk of SPDK is displayed as "-". After the modification, the socket associated with it can be displayed. Signed-off-by: dinglimin Signed-off-by: imxcc (cherry picked from commit ba96974243af5faf2eb7d9ad88a0bfd35b5f7e15) --- ...-vhostuser-socket-path-in-domblklist.patch | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 virsh-Display-vhostuser-socket-path-in-domblklist.patch diff --git a/virsh-Display-vhostuser-socket-path-in-domblklist.patch b/virsh-Display-vhostuser-socket-path-in-domblklist.patch new file mode 100644 index 0000000..cc6ed7a --- /dev/null +++ b/virsh-Display-vhostuser-socket-path-in-domblklist.patch @@ -0,0 +1,32 @@ +From a50b9b25b94d590215ccbe18a6b9860990098f81 Mon Sep 17 00:00:00 2001 +From: dinglimin +Date: Thu, 16 Dec 2021 17:18:48 +0800 +Subject: [PATCH] virsh: Display vhostuser socket path in domblklist + +The domblklist command is designed to show a brief information about the blocks +of a domain. One piece of information that is shows is "Target" and "Source". +Before the modification, the Vhost disk of SPDK is displayed as "-". After +the modification, the socket associated with it can be displayed. + +Signed-off-by: dinglimin +--- + tools/virsh-domain-monitor.c | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/tools/virsh-domain-monitor.c b/tools/virsh-domain-monitor.c +index 9b8c69fa9d..74ff369597 100644 +--- a/tools/virsh-domain-monitor.c ++++ b/tools/virsh-domain-monitor.c +@@ -665,7 +665,8 @@ cmdDomblklist(vshControl *ctl, const vshCmd *cmd) + "|./source/@dev" + "|./source/@dir" + "|./source/@name" +- "|./source/@volume)", ctxt); ++ "|./source/@volume" ++ "|./source/@path)", ctxt); + } + + if (details) { +-- +2.27.0 +