diff options
author | David Teigland <teigland@redhat.com> | 2015-07-30 12:04:31 -0500 |
---|---|---|
committer | David Teigland <teigland@redhat.com> | 2015-07-30 12:04:31 -0500 |
commit | b40ccdd57cc0d57a71e584600c1025e649dc6d8a (patch) | |
tree | 8b28962d6b8af0bf5f81de33cffecf28b3623280 /tools/vgcreate.c | |
parent | 78135c24b419d070a238f1660408c843707c7cbb (diff) | |
download | lvm2-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.c | 2 |
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); |