summaryrefslogtreecommitdiff
path: root/tools/vgcreate.c
diff options
context:
space:
mode:
authorDavid Teigland <teigland@redhat.com>2015-07-30 12:04:31 -0500
committerDavid Teigland <teigland@redhat.com>2015-07-30 12:04:31 -0500
commitb40ccdd57cc0d57a71e584600c1025e649dc6d8a (patch)
tree8b28962d6b8af0bf5f81de33cffecf28b3623280 /tools/vgcreate.c
parent78135c24b419d070a238f1660408c843707c7cbb (diff)
downloadlvm2-b40ccdd57cc0d57a71e584600c1025e649dc6d8a.tar.gz
lvmlockd: create sanlock lv large enough for existing lvs
When changing an existing VG to lock_type sanlock, make the sanlock lv large enough to hold all the locks needed for existing LVs.
Diffstat (limited to 'tools/vgcreate.c')
-rw-r--r--tools/vgcreate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/vgcreate.c b/tools/vgcreate.c
index 20ba4aa31..67b593dcc 100644
--- a/tools/vgcreate.c
+++ b/tools/vgcreate.c
@@ -131,7 +131,7 @@ int vgcreate(struct cmd_context *cmd, int argc, char **argv)
* a local VG. lockd_init_vg() then writes the VG a second time with
* both lock_type and lock_args set.
*/
- if (!lockd_init_vg(cmd, vg, vp_new.lock_type)) {
+ if (!lockd_init_vg(cmd, vg, vp_new.lock_type, 0)) {
log_error("Failed to initialize lock args for lock type %s",
vp_new.lock_type);
vg_remove_pvs(vg);