Grow: allow "--add" with "--grow --level=??"

This is useful for reshaping a RAID0 to a higher level.
The recovery will happen at the same time as the reshape.

Signed-off-by: NeilBrown <neilb@suse.de>
This commit is contained in:
NeilBrown 2013-06-24 16:13:00 +10:00
parent e5ba75ce03
commit 1c8b90df15
1 changed files with 1 additions and 1 deletions

View File

@ -1490,7 +1490,7 @@ int main(int argc, char *argv[])
break;
}
}
if (devs_found > 1 && s.raiddisks == 0) {
if (devs_found > 1 && s.raiddisks == 0 && s.level == UnSet) {
/* must be '-a'. */
if (s.size > 0 || s.chunk || s.layout_str != NULL || s.bitmap_file) {
pr_err("--add cannot be used with "