From 0c38e12ef9886ef0c11126d73767b3c5300f2c71 Mon Sep 17 00:00:00 2001 From: dinglimin Date: Fri, 10 Dec 2021 17:57:19 +0800 Subject: [PATCH] virsh: Display vhostuser socket path in domblklist --- libvirt.spec | 4 +++ ...-vhostuser-socket-path-in-domblklist.patch | 29 +++++++++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 virsh-Display-vhostuser-socket-path-in-domblklist.patch diff --git a/libvirt.spec b/libvirt.spec index 72b971c..e8b0a5f 100644 --- a/libvirt.spec +++ b/libvirt.spec @@ -190,6 +190,7 @@ Patch0073: virDevMapperGetTargets-Don-t-ignore-EBADF.patch Patch0074: conf-domain_conf-pin-the-retry_interval-and-retry_ti.patch Patch0075: storage_driver-Unlock-object-on-ACL-fail-in-storageP.patch Patch0076: security-fix-SELinux-label-generation-logic.patch +Patch0077: virsh-Display-vhostuser-socket-path-in-domblklist.patch Requires: libvirt-daemon = %{version}-%{release} Requires: libvirt-daemon-config-network = %{version}-%{release} @@ -1923,6 +1924,9 @@ exit 0 %changelog +* Fri Dec 10 2021 Dinglimin +- virsh: Display vhostuser socket path in domblklist + * Sun Sep 26 2021 imxcc - fix cve-2021-3667 cve-2021-3631 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..4decc9e --- /dev/null +++ b/virsh-Display-vhostuser-socket-path-in-domblklist.patch @@ -0,0 +1,29 @@ +From 221db5456bf80900729874f9a752a312f2b0a71a Mon Sep 17 00:00:00 2001 +From: dinglimin +Date: Fri, 10 Dec 2021 16:57:32 +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 9b8c69f..74ff369 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) { +-- +1.8.3.1 + -- Gitee