nodedev: invert virIsCapableFCHost return value

Both virIsCapableFCHost and virIsCapableVport return 0 when the
respective sysfs path is accessible.
This commit is contained in:
Ján Tomko 2013-03-28 16:46:55 +01:00 committed by Osier Yang
parent a1c68a1fcb
commit 248371417b
1 changed files with 1 additions and 1 deletions

View File

@ -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,