scsi: Force error for SCSI pools on virStorageBackendSCSIFindLUs failure

Related to :

https://bugzilla.redhat.com/show_bug.cgi?id=1171933

Rather than ignore the return status from virStorageBackendSCSIFindLUs,
cause a failure to start the pool if a -1 is returned. Issue was noted
during testing of the bz for iscsi that 'scsi' and 'fc' pools don't fail.
This commit is contained in:
John Ferlan 2015-06-23 14:40:31 -04:00
parent 82285d5290
commit 1b695be173

View File

@ -935,7 +935,8 @@ virStorageBackendSCSIRefreshPool(virConnectPtr conn ATTRIBUTE_UNUSED,
if (virStorageBackendSCSITriggerRescan(host) < 0)
goto out;
ignore_value(virStorageBackendSCSIFindLUs(pool, host));
if (virStorageBackendSCSIFindLUs(pool, host) < 0)
goto out;
ret = 0;
out: