提交 de2aa6cf 编写于 作者: F Federico Simoncelli 提交者: Eric Blake

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: NFederico Simoncelli <fsimonce@redhat.com>
上级 a07c81c4
...@@ -294,8 +294,10 @@ static int virLockManagerSanlockInit(unsigned int version, ...@@ -294,8 +294,10 @@ static int virLockManagerSanlockInit(unsigned int version,
goto error; goto error;
} }
if (virLockManagerSanlockSetupLockspace() < 0) if (driver->autoDiskLease) {
goto error; if (virLockManagerSanlockSetupLockspace() < 0)
goto error;
}
return 0; return 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册