diff options
author | NeilBrown <neilb@suse.de> | 2009-07-14 12:11:31 +1000 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2009-07-14 12:11:31 +1000 |
commit | d823a6c87225d0c7f96443013798ed4dacf51ff6 (patch) | |
tree | 6c676911dad4d14da6112156f560b1caafc4e2b3 /mdadm.c | |
parent | 4a06e2c270948bdcfaa447c8a0e80abb0978b5c4 (diff) | |
download | mdadm-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.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -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) { |