mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-02 09:55:18 +00:00
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:
parent
82285d5290
commit
1b695be173
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user