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:
parent
e5ba75ce03
commit
1c8b90df15
2
mdadm.c
2
mdadm.c
|
@ -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 "
|
||||
|
|
Loading…
Reference in New Issue