summaryrefslogtreecommitdiff
path: root/mdadm.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2013-06-24 16:13:00 +1000
committerNeilBrown <neilb@suse.de>2013-06-24 16:13:00 +1000
commit1c8b90df155c7eef46f56986eeef911b9744e70a (patch)
treeb52867dac7c1ef09213499d9622b2c66344a8006 /mdadm.c
parente5ba75ce0330a599f23325962cb21ea2734e4eaa (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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mdadm.c b/mdadm.c
index 14005b3e..a46a716b 100644
--- a/mdadm.c
+++ b/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 "