diff options
author | David Teigland <teigland@redhat.com> | 2016-02-25 11:56:24 -0600 |
---|---|---|
committer | David Teigland <teigland@redhat.com> | 2016-02-25 12:00:53 -0600 |
commit | 66e175702af4cfb1ecad9316a8151c001933c190 (patch) | |
tree | 7535d63120aae0a46daca910cdf9068046cf5872 /tools/pvcreate.c | |
parent | 79f259621542e62a2f9fb5982f473d2bb849b1b5 (diff) | |
download | lvm2-66e175702af4cfb1ecad9316a8151c001933c190.tar.gz |
pvcreate: fix setting uuid arg
Commit 4de6caf5 ("redefine pvcreate structs") left
out setting the "idp" pointer to the "id" arg.
Diffstat (limited to 'tools/pvcreate.c')
-rw-r--r-- | tools/pvcreate.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/pvcreate.c b/tools/pvcreate.c index 85fed091e..77f5969db 100644 --- a/tools/pvcreate.c +++ b/tools/pvcreate.c @@ -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) { |