summaryrefslogtreecommitdiff
path: root/mdadm.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2009-07-14 12:11:31 +1000
committerNeilBrown <neilb@suse.de>2009-07-14 12:11:31 +1000
commitd823a6c87225d0c7f96443013798ed4dacf51ff6 (patch)
tree6c676911dad4d14da6112156f560b1caafc4e2b3 /mdadm.c
parent4a06e2c270948bdcfaa447c8a0e80abb0978b5c4 (diff)
downloadmdadm-d823a6c87225d0c7f96443013798ed4dacf51ff6.tar.gz
Remove Manage_reconfing in favour of Grow_reshape
Bother Manage_reconfig and Grow_reshape provide for changing the 'layout' of a faulty array. This is no necessary. So discard Manage_reconfig and just use Grow_reshape Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'mdadm.c')
-rw-r--r--mdadm.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/mdadm.c b/mdadm.c
index 82e2d43..bac0f35 100644
--- a/mdadm.c
+++ b/mdadm.c
@@ -1413,9 +1413,7 @@ int main(int argc, char *argv[])
fprintf(stderr, Name ": can change at most one of size, raiddisks, bitmap, and layout\n");
rv = 1;
break;
- } else if (layout != UnSet)
- rv = Manage_reconfig(devlist->devname, mdfd, layout);
- else if (size >= 0 || raiddisks)
+ } else if (size >= 0 || raiddisks || layout != UnSet)
rv = Grow_reshape(devlist->devname, mdfd, quiet, backup_file,
size, level, layout, chunk, raiddisks);
else if (bitmap_file) {