mirror of https://gitee.com/openkylin/libvirt.git
nodedev: invert virIsCapableFCHost return value
Both virIsCapableFCHost and virIsCapableVport return 0 when the respective sysfs path is accessible.
This commit is contained in:
parent
a1c68a1fcb
commit
248371417b
|
@ -46,7 +46,7 @@ detect_scsi_host_caps_linux(union _virNodeDevCapData *d)
|
|||
|
||||
VIR_DEBUG("Checking if host%d is an FC HBA", d->scsi_host.host);
|
||||
|
||||
if (virIsCapableFCHost(NULL, d->scsi_host.host)) {
|
||||
if (virIsCapableFCHost(NULL, d->scsi_host.host) == 0) {
|
||||
d->scsi_host.flags |= VIR_NODE_DEV_CAP_FLAG_HBA_FC_HOST;
|
||||
|
||||
if (virReadFCHost(NULL,
|
||||
|
|
Loading…
Reference in New Issue