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