]> sourceware.org Git - lvm2.git/commitdiff
pvcreate: fix setting uuid arg
authorDavid Teigland <teigland@redhat.com>
Thu, 25 Feb 2016 17:56:24 +0000 (11:56 -0600)
committerDavid Teigland <teigland@redhat.com>
Thu, 25 Feb 2016 18:00:53 +0000 (12:00 -0600)
Commit 4de6caf5 ("redefine pvcreate structs") left
out setting the "idp" pointer to the "id" arg.

tools/pvcreate.c

index 85fed091e01e20dcff39092ae0216c87a9505688..77f5969dba7de00af16c29ddca02f36b678159fc 100644 (file)
@@ -49,6 +49,7 @@ static int pvcreate_restore_params_from_args(struct cmd_context *cmd, int argc,
                pp->uuid_str = arg_str_value(cmd, uuidstr_ARG, "");
                if (!id_read_format(&pp->pva.id, pp->uuid_str))
                        return 0;
+               pp->pva.idp = &pp->pva.id;
        }
 
        if (arg_sign_value(cmd, physicalvolumesize_ARG, SIGN_NONE) == SIGN_MINUS) {
This page took 0.069607 seconds and 5 git commands to generate.