From: Peter Rajnoha Date: Thu, 13 Dec 2012 10:15:37 +0000 (+0100) Subject: lvconvert: also allow --type with --stripes X-Git-Tag: v2_02_99~604 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=e8025aa67a05af046878f52dfb45fca30ed70084;p=lvm2.git lvconvert: also allow --type with --stripes We can also use this for conversion between different mirror segment types. Each new segment type converter then needs to check itself whether the --stripes is applicable. --- diff --git a/tools/lvconvert.c b/tools/lvconvert.c index 9c947d7fd..fa3b1ecf3 100644 --- a/tools/lvconvert.c +++ b/tools/lvconvert.c @@ -169,9 +169,9 @@ static int _read_params(struct lvconvert_params *lp, struct cmd_context *cmd, if ((arg_count(cmd, stripes_long_ARG) || arg_count(cmd, stripesize_ARG)) && !(arg_count(cmd, mirrors_ARG) || arg_count(cmd, repair_ARG) || - arg_count(cmd, thinpool_ARG))) { + arg_count(cmd, thinpool_ARG) || arg_count(cmd, type_ARG))) { log_error("--stripes or --stripesize argument is only valid " - "with --mirrors, --repair or --thinpool"); + "with --mirrors, --repair, --thinpool or --type"); return 0; }