1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

vgcreate: allow pvcreate force option

Commit a9940bd3c9 began disallowing the -f (force) option
to apply to the implicit pvcreate.  Make it allowed again.
This commit is contained in:
David Teigland 2016-07-06 14:10:53 -05:00
parent 351bcf5f82
commit 4d1c4e1f73

View File

@ -49,9 +49,6 @@ int vgcreate(struct cmd_context *cmd, int argc, char **argv)
/* Don't create a new PV on top of an existing PV like pvcreate does. */ /* Don't create a new PV on top of an existing PV like pvcreate does. */
pp.preserve_existing = 1; pp.preserve_existing = 1;
/* pvcreate within vgcreate cannot be forced. */
pp.force = 0;
if (!vgcreate_params_set_defaults(cmd, &vp_def, NULL)) if (!vgcreate_params_set_defaults(cmd, &vp_def, NULL))
return EINVALID_CMD_LINE; return EINVALID_CMD_LINE;
vp_def.vg_name = vg_name; vp_def.vg_name = vg_name;