From 09aec2a456db8f9464edde61af673648d07d5b80 Mon Sep 17 00:00:00 2001 From: John Ferlan Date: Thu, 26 Feb 2015 11:22:17 -0500 Subject: [PATCH] virsh: Adjust domblklist to understand disk volume syntax A disk using a source pool is listed as having a source '-' in domblklist because it doesn't check the right XML syntax to find the source. Add a check for "./source/volume" which is where the "path" (of sorts) to the volume name is described. --- 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 925eb1bbba..3c16b3eab9 100644 --- a/tools/virsh-domain-monitor.c +++ b/tools/virsh-domain-monitor.c @@ -531,7 +531,8 @@ cmdDomblklist(vshControl *ctl, const vshCmd *cmd) source = virXPathString("string(./source/@file" "|./source/@dev" "|./source/@dir" - "|./source/@name)", ctxt); + "|./source/@name" + "|./source/@volume)", ctxt); if (details) { vshPrint(ctl, "%-10s %-10s %-10s %s\n", type, device, target, source ? source : "-"); -- 2.39.5