]> sourceware.org Git - lvm2.git/commitdiff
vgcreate: allow pvcreate force option
authorDavid Teigland <teigland@redhat.com>
Wed, 6 Jul 2016 19:10:53 +0000 (14:10 -0500)
committerDavid Teigland <teigland@redhat.com>
Wed, 6 Jul 2016 19:10:53 +0000 (14:10 -0500)
Commit a9940bd3c92 began disallowing the -f (force) option
to apply to the implicit pvcreate.  Make it allowed again.

tools/vgcreate.c

index 1a6a240ed55500884264741d58eb020eb6bfab84..af0c3636458fba8184aa73456a662c24c5ff1e0e 100644 (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. */
        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;
This page took 0.040203 seconds and 5 git commands to generate.