]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
virsh: allow nodedev-list --all --tree
authorJonathon Jongsma <jjongsma@redhat.com>
Wed, 7 Jul 2021 21:29:29 +0000 (16:29 -0500)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 19 Jul 2021 09:32:12 +0000 (11:32 +0200)
Allow the tree view with --all so that we can see all inactive mdevs in
a tree structure nested under their parent devices.

Signed-off-by: Jonathon Jongsma <jjongsma@redhat.com>
Reviewed-by: Shalini Chellathurai Saroja <shalini@linux.ibm.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
tools/virsh-nodedev.c

index 8c2086b71f78fa4da65ae1d3e2eee3d6f7918bcd..5b1afe4601246986048c9c7b8c778b790d83116e 100644 (file)
@@ -428,8 +428,8 @@ cmdNodeListDevices(vshControl *ctl, const vshCmd *cmd G_GNUC_UNUSED)
         return false;
     }
 
-    if (tree && (cap_str || inactive || all)) {
-        vshError(ctl, "%s", _("Option --tree is incompatible with other options"));
+    if (tree && (cap_str || inactive)) {
+        vshError(ctl, "%s", _("Option --tree is incompatible with --cap and --inactive"));
         return false;
     }