]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Node Devices: Fix nodedev-list for fc_host & vports.
authorPrerna Saxena <prerna@linux.vnet.ibm.com>
Wed, 6 Aug 2014 10:20:11 +0000 (15:50 +0530)
committerJohn Ferlan <jferlan@redhat.com>
Wed, 6 Aug 2014 11:45:45 +0000 (07:45 -0400)
commit8d4740c1b05f1c7c6e1e0a7d0008798edf453821
tree3f5bede77d88dc93963abe876cc6bf7041f80b40
parent4eb89846832713c706063fc9a39077e841e7265d
Node Devices: Fix nodedev-list for fc_host & vports.

In a system with Fiber Channel Host Adapters, a query to list all Fibre Channel
HBAs OR Vports currently returns empty list:
  $ virsh nodedev-list --cap fc_host

  $

Libvirt correctly discovers properties for all HBAs. However, the reporting
fails because of incorrect flag comparison while filtering these types.

This is fixed by removing references to 'VIR_CONNECT_LIST_NODE_DEVICES_CAP_*'
for comparison and replacing those with 'VIR_NODE_DEV_CAP_*'

Introduced by original commit id '652a2ec6'

Signed-off-by: Prerna Saxena <prerna@linux.vnet.ibm.com>
src/conf/node_device_conf.c