[libvirt] [PATCH 1/2] virsh: Adjust domblklist to understand disk volume syntax

Martin Kletzander mkletzan at redhat.com
Mon Mar 2 14:52:42 UTC 2015


On Thu, Feb 26, 2015 at 04:59:02PM -0500, John Ferlan wrote:
>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.
>
>Signed-off-by: John Ferlan <jferlan at redhat.com>
>---
> tools/virsh-domain-monitor.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>

ACK

>diff --git a/tools/virsh-domain-monitor.c b/tools/virsh-domain-monitor.c
>index 925eb1b..3c16b3e 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.1.0
>
>--
>libvir-list mailing list
>libvir-list at redhat.com
>https://www.redhat.com/mailman/listinfo/libvir-list
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20150302/ac7cfa74/attachment-0001.sig>


More information about the libvir-list mailing list