mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-05 12:35:20 +00:00
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.
This commit is contained in:
parent
8968c4946c
commit
09aec2a456
@ -531,7 +531,8 @@ cmdDomblklist(vshControl *ctl, const vshCmd *cmd)
|
|||||||
source = virXPathString("string(./source/@file"
|
source = virXPathString("string(./source/@file"
|
||||||
"|./source/@dev"
|
"|./source/@dev"
|
||||||
"|./source/@dir"
|
"|./source/@dir"
|
||||||
"|./source/@name)", ctxt);
|
"|./source/@name"
|
||||||
|
"|./source/@volume)", ctxt);
|
||||||
if (details) {
|
if (details) {
|
||||||
vshPrint(ctl, "%-10s %-10s %-10s %s\n", type, device,
|
vshPrint(ctl, "%-10s %-10s %-10s %s\n", type, device,
|
||||||
target, source ? source : "-");
|
target, source ? source : "-");
|
||||||
|
Loading…
Reference in New Issue
Block a user