[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[libvirt] [PATCH 6/6] virsh: Support SCSI_GENERIC cap flag for nodedev-list



Document for nodedev-list is also updated.
---
 tools/virsh-nodedev.c | 3 +++
 tools/virsh.pod       | 6 +++---
 2 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/tools/virsh-nodedev.c b/tools/virsh-nodedev.c
index 3657c5f..da93b8e 100644
--- a/tools/virsh-nodedev.c
+++ b/tools/virsh-nodedev.c
@@ -453,6 +453,9 @@ cmdNodeListDevices(vshControl *ctl, const vshCmd *cmd ATTRIBUTE_UNUSED)
         case VIR_NODE_DEV_CAP_VPORTS:
             flags |= VIR_CONNECT_LIST_NODE_DEVICES_CAP_VPORTS;
             break;
+        case VIR_NODE_DEV_CAP_SCSI_GENERIC:
+            flags |= VIR_CONNECT_LIST_NODE_DEVICES_CAP_SCSI_GENERIC;
+            break;
         default:
             break;
         }
diff --git a/tools/virsh.pod b/tools/virsh.pod
index 7c8ce18..f9e0287 100644
--- a/tools/virsh.pod
+++ b/tools/virsh.pod
@@ -2086,9 +2086,9 @@ List all of the devices available on the node that are known by libvirt.
 I<cap> is used to filter the list by capability types, the types must be
 separated by comma, e.g. --cap pci,scsi, valid capability types include
 'system', 'pci', 'usb_device', 'usb', 'net', 'scsi_host', 'scsi_target',
-'scsi', 'storage', 'fc_host', 'vports'. If I<--tree> is used, the output
-is formatted in a tree representing parents of each node. I<cap> and
-I<--tree> are mutually exclusive.
+'scsi', 'storage', 'fc_host', 'vports', 'scsi_generic'. If I<--tree> is
+used, the output is formatted in a tree representing parents of each node.
+I<cap> and I<--tree> are mutually exclusive.
 
 =item B<nodedev-reattach> I<nodedev>
 
-- 
1.8.1.4


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]