]> xenbits.xensource.com Git - libvirt.git/commitdiff
virsh: Support SCSI_GENERIC cap flag for nodedev-list
authorOsier Yang <jyang@redhat.com>
Mon, 3 Jun 2013 10:05:35 +0000 (18:05 +0800)
committerOsier Yang <jyang@redhat.com>
Tue, 18 Jun 2013 09:20:28 +0000 (17:20 +0800)
Document for nodedev-list is also updated.

tools/virsh-nodedev.c
tools/virsh.pod

index 3657c5f81c465ac7e21c73746545af45f3a196f3..da93b8e60a8ff926131ba6240af1ef6bb6f601b9 100644 (file)
@@ -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;
         }
index 405b4d2feb5ac893588a59433c35fc95f47d5e03..0b27dda775a4b6b37c728f3384b166bbfc735936 100644 (file)
@@ -2118,9 +2118,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>