diff --git a/tools/lvconvert.c b/tools/lvconvert.c index fc58add31..e428ce0fc 100644 --- a/tools/lvconvert.c +++ b/tools/lvconvert.c @@ -157,6 +157,7 @@ static int _read_params(struct lvconvert_params *lp, struct cmd_context *cmd, int pagesize = lvm_getpagesize(); memset(lp, 0, sizeof(*lp)); + lp->target_attr = ~0; if ((arg_count(cmd, snapshot_ARG) || arg_count(cmd, merge_ARG)) && (arg_count(cmd, mirrorlog_ARG) || arg_count(cmd, mirrors_ARG) || diff --git a/tools/lvcreate.c b/tools/lvcreate.c index 0d76bbe9d..78292f74f 100644 --- a/tools/lvcreate.c +++ b/tools/lvcreate.c @@ -659,6 +659,7 @@ static int _lvcreate_params(struct lvcreate_params *lp, memset(lp, 0, sizeof(*lp)); memset(lcp, 0, sizeof(*lcp)); dm_list_init(&lp->tags); + lp->target_attr = ~0; /* * Check selected options are compatible and determine segtype