mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00:00
sanlock: avoid lockspace setup when auto_disk_lease is off
When auto_disk_lease is off we should avoid the automatic lockspace creation. Signed-off-by: Federico Simoncelli <fsimonce@redhat.com>
This commit is contained in:
parent
a07c81c4d0
commit
de2aa6cfc7
@ -294,8 +294,10 @@ static int virLockManagerSanlockInit(unsigned int version,
|
|||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (driver->autoDiskLease) {
|
||||||
if (virLockManagerSanlockSetupLockspace() < 0)
|
if (virLockManagerSanlockSetupLockspace() < 0)
|
||||||
goto error;
|
goto error;
|
||||||
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user