mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00:00
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);
|
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;
|
d->scsi_host.flags |= VIR_NODE_DEV_CAP_FLAG_HBA_FC_HOST;
|
||||||
|
|
||||||
if (virReadFCHost(NULL,
|
if (virReadFCHost(NULL,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user