From: John Ferlan Date: Tue, 23 Jun 2015 18:40:31 +0000 (-0400) Subject: scsi: Force error for SCSI pools on virStorageBackendSCSIFindLUs failure X-Git-Tag: v1.2.17-rc1~57 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1b695be173356d720bbc3de96bf0208ca7d531f0;p=thirdparty%2Flibvirt.git 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. --- diff --git a/src/storage/storage_backend_scsi.c b/src/storage/storage_backend_scsi.c index b426145326..a593a2b43e 100644 --- a/src/storage/storage_backend_scsi.c +++ b/src/storage/storage_backend_scsi.c @@ -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: