]> git.ipfire.org Git - thirdparty/mdadm.git/commit - Grow.c
Grow: fix check_reshape and open_code it.
authorNeilBrown <neilb@suse.de>
Tue, 1 Nov 2011 04:45:46 +0000 (15:45 +1100)
committerNeilBrown <neilb@suse.de>
Tue, 1 Nov 2011 04:45:46 +0000 (15:45 +1100)
commit446894ea8db17a2dfc740f81d58190c5ac8167d5
tree3ced8643ef61f251f2ba93ecf234bd50dcc00f9b
parentad098cdd7943bd16638280f8b7f59e9af250954d
Grow: fix check_reshape and open_code it.

check_reshape should not try to parse the subarray string - only
metadata handlers are allowed to do that.

The common code and only interpret a subarray string by passing it to
"container_content" which will then return only the member for that
subarray.

So remove check_reshape and place similar logic explicitly at the two
call-sites.  They are different enough that it is probably clearer to
have explicit code.

Signed-off-by: NeilBrown <neilb@suse.de>
Grow.c
super-intel.c