]> xenbits.xensource.com Git - libvirt.git/commitdiff
virsh: Adjust domblklist to understand disk volume syntax
authorJohn Ferlan <jferlan@redhat.com>
Thu, 26 Feb 2015 16:22:17 +0000 (11:22 -0500)
committerJohn Ferlan <jferlan@redhat.com>
Mon, 2 Mar 2015 22:07:55 +0000 (17:07 -0500)
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

index 925eb1bbba72220d010cc337c9d03e36573ecf34..3c16b3eab912c0b93245b3e462927e88b7af0f62 100644 (file)
@@ -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 : "-");