Skip to contentSkip to conversation

master - vgcreate: allow pvcreate force option

PATCH David Teigland 1 participant 1 message Jul 6, 2016

lore
Share & tools
lore
#0 lore raw
Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=4d1c4e1f7339746eacc850f45085ecd75bfd56a1
Commit:        4d1c4e1f7339746eacc850f45085ecd75bfd56a1
Parent:        351bcf5f82a76b897cd431e3709759507566ee7b
Author:        David Teigland <[email protected]>
AuthorDate:    Wed Jul 6 14:10:53 2016 -0500
Committer:     David Teigland <[email protected]>
CommitterDate: Wed Jul 6 14:10:53 2016 -0500

vgcreate: allow pvcreate force option

Commit a9940bd3c92 began disallowing the -f (force) option to apply to the implicit pvcreate. Make it allowed again.

---
 tools/vgcreate.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)
tools/vgcreate.c +0 -3
index 1a6a240..af0c363 100644
@@ -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. */
 	pp.preserve_existing = 1;
 
-	/* pvcreate within vgcreate cannot be forced. */
-	pp.force = 0;
-
 	if (!vgcreate_params_set_defaults(cmd, &vp_def, NULL))
 		return EINVALID_CMD_LINE;
 	vp_def.vg_name = vg_name;