diff options
author | NeilBrown <neilb@suse.de> | 2013-06-24 16:13:00 +1000 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2013-06-24 16:13:00 +1000 |
commit | 1c8b90df155c7eef46f56986eeef911b9744e70a (patch) | |
tree | b52867dac7c1ef09213499d9622b2c66344a8006 /mdadm.c | |
parent | e5ba75ce0330a599f23325962cb21ea2734e4eaa (diff) |
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>
Diffstat (limited to 'mdadm.c')
-rw-r--r-- | mdadm.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 " |