diff options
author | NeilBrown <neilb@suse.de> | 2009-07-14 04:11:31 +0200 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2009-07-14 04:11:31 +0200 |
commit | d823a6c87225d0c7f96443013798ed4dacf51ff6 (patch) | |
tree | 6c676911dad4d14da6112156f560b1caafc4e2b3 /mdadm.c | |
parent | main: factor out code to parse layout for raid10 and faulty. (diff) | |
download | mdadm-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.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) { |