mirror of
git://sourceware.org/git/lvm2.git
synced 2025-03-10 16:58:47 +03:00
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.
This commit is contained in:
parent
c089029b70
commit
e8025aa67a
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user