diff options
author | Peter Rajnoha <prajnoha@redhat.com> | 2014-09-12 10:03:12 +0200 |
---|---|---|
committer | Peter Rajnoha <prajnoha@redhat.com> | 2014-09-12 10:09:21 +0200 |
commit | f0cafc92812e285e5120241da04b5d119b27060b (patch) | |
tree | c62f39a544dd089a06b9aed0c4575e8e360e5400 /tools/vgcreate.c | |
parent | 80ac8f37d6ac5f8c5228678d4ee07187b5d4db7b (diff) | |
download | lvm2-f0cafc92812e285e5120241da04b5d119b27060b.tar.gz |
conf: add allocation/physical_extent_size config option for default PE size of VGs.
Removes a need to use "vgcreate -s <desired PE size>" all the
time time just to override hardcoded default which is 4096KiB.
Diffstat (limited to 'tools/vgcreate.c')
-rw-r--r-- | tools/vgcreate.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/vgcreate.c b/tools/vgcreate.c index 9d701c841..01bf421f6 100644 --- a/tools/vgcreate.c +++ b/tools/vgcreate.c @@ -41,7 +41,8 @@ int vgcreate(struct cmd_context *cmd, int argc, char **argv) return EINVALID_CMD_LINE; } - vgcreate_params_set_defaults(&vp_def, NULL); + if (!vgcreate_params_set_defaults(cmd, &vp_def, NULL)) + return EINVALID_CMD_LINE; vp_def.vg_name = vg_name; if (!vgcreate_params_set_from_args(cmd, &vp_new, &vp_def)) return EINVALID_CMD_LINE; |