[libvirt] [PATCH] check "fc_host" and "vport_ops" capabilitis in SCSI host nodedevs
Shivaprasad G Bhat
shivaprasadbhat at gmail.com
Tue Feb 3 11:52:08 UTC 2015
virNodeListDevices called by listDevices indirectly uses the
virNodeDeviceHasCap() which is buggy.
Earlier, virNodeListDevices was used in "virsh nodedev-list" as well. Though,
the code was rewritten to use vshNodeDeviceListCollect instead.
The patch fixes listDevices output for the below python script.
-------------
import libvirt
conn = libvirt.openReadOnly('qemu:///system')
fc = conn.listDevices('fc_host', 0)
print(fc)
------------
---
Shivaprasad G Bhat (1):
check "fc_host" and "vport_ops" capabilities in SCSI host nodedevs
src/conf/node_device_conf.c | 8 ++++++++
1 file changed, 8 insertions(+)
--
Signature
More information about the libvir-list
mailing list