1
0
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:
Federico Simoncelli 2011-07-08 10:18:35 +00:00 committed by Eric Blake
parent a07c81c4d0
commit de2aa6cfc7

View File

@ -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;