summaryrefslogtreecommitdiffstats
path: root/mdadm.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2009-07-14 04:11:31 +0200
committerNeilBrown <neilb@suse.de>2009-07-14 04:11:31 +0200
commitd823a6c87225d0c7f96443013798ed4dacf51ff6 (patch)
tree6c676911dad4d14da6112156f560b1caafc4e2b3 /mdadm.c
parentmain: factor out code to parse layout for raid10 and faulty. (diff)
downloadmdadm-d823a6c87225d0c7f96443013798ed4dacf51ff6.tar.xz
mdadm-d823a6c87225d0c7f96443013798ed4dacf51ff6.zip
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 82e2d438..bac0f358 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) {