master - pvcreate: fix setting uuid arg
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=66e175702af4cfb1ecad9316a8151c001933c190 Commit: 66e175702af4cfb1ecad9316a8151c001933c190 Parent: 79f259621542e62a2f9fb5982f473d2bb849b1b5 Author: David Teigland <[email protected]> AuthorDate: Thu Feb 25 11:56:24 2016 -0600 Committer: David Teigland <[email protected]> CommitterDate: Thu Feb 25 12:00:53 2016 -0600
pvcreate: fix setting uuid arg
Commit 4de6caf5 ("redefine pvcreate structs") left out setting the "idp" pointer to the "id" arg.
--- tools/pvcreate.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
tools/pvcreate.c +1 -0
@@ -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 ) {