[libvirt PATCH 2/2] virsh: allow nodedev-list --all --tree
Jonathon Jongsma
jjongsma at redhat.com
Wed Jul 7 21:29:29 UTC 2021
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 at redhat.com>
---
tools/virsh-nodedev.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tools/virsh-nodedev.c b/tools/virsh-nodedev.c
index 8c2086b71f..5b1afe4601 100644
--- a/tools/virsh-nodedev.c
+++ b/tools/virsh-nodedev.c
@@ -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;
}
--
2.31.1
More information about the libvir-list
mailing list