mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-26 03:21:44 +03: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;
|
||||
}
|
||||
|
||||
if (virLockManagerSanlockSetupLockspace() < 0)
|
||||
goto error;
|
||||
if (driver->autoDiskLease) {
|
||||
if (virLockManagerSanlockSetupLockspace() < 0)
|
||||
goto error;
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user