]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virsh: Add --inactive, --all to nodedev-list
authorJonathon Jongsma <jjongsma@redhat.com>
Fri, 10 Jul 2020 19:47:01 +0000 (14:47 -0500)
committerJonathon Jongsma <jjongsma@redhat.com>
Wed, 7 Apr 2021 20:10:34 +0000 (15:10 -0500)
commit7d5d29a72730182774ea9db02bae54d28df2dec7
treefc3d09f547a88ac846578620f9cfcb087290db03
parent7e386cde1f7f6761ac189277e07d74f7d98a8254
virsh: Add --inactive, --all to nodedev-list

Now that we can filter active and inactive node devices in
virConnectListAllNodeDevices(), add these switches to the virsh command.

Eventual output (once everything is hooked up):

    virsh # nodedev-list --cap mdev
    mdev_bd2ea955_3402_4252_8c17_7468083a0f26

    virsh # nodedev-list --inactive --cap mdev
    mdev_07d8b8b0_7e04_4c0f_97ed_9214ce12723c
    mdev_927c040f_ae7d_4a35_966e_286ba6ebbe1c

    virsh # nodedev-list --all --cap mdev
    mdev_07d8b8b0_7e04_4c0f_97ed_9214ce12723c
    mdev_927c040f_ae7d_4a35_966e_286ba6ebbe1c
    mdev_bd2ea955_3402_4252_8c17_7468083a0f26

Signed-off-by: Jonathon Jongsma <jjongsma@redhat.com>
Reviewed-by: Erik Skultety <eskultet@redhat.com>
tools/virsh-nodedev.c