mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-18 18:45:16 +00:00
iscsi: do not fail to stop a stopped pool
Just as we allow stopping filesystem pools when they were unmounted externally, do not fail to stop an iscsi pool when someone else closed the session externally. Reported at: https://bugzilla.redhat.com/show_bug.cgi?id=1171984
This commit is contained in:
parent
198cc1d339
commit
a41b1f196c
@ -449,8 +449,13 @@ virStorageBackendISCSIStopPool(virConnectPtr conn ATTRIBUTE_UNUSED,
|
||||
virStoragePoolObjPtr pool)
|
||||
{
|
||||
char *portal;
|
||||
char *session;
|
||||
int ret = -1;
|
||||
|
||||
if ((session = virStorageBackendISCSISession(pool, true)) == NULL)
|
||||
return 0;
|
||||
VIR_FREE(session);
|
||||
|
||||
if ((portal = virStorageBackendISCSIPortal(&pool->def->source)) == NULL)
|
||||
return -1;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user