]> git.ipfire.org Git - thirdparty/mdadm.git/commit
FIX: Do not allow for multiple reshape_array() execution during reshape_container...
authorAdam Kwolek <adam.kwolek@intel.com>
Thu, 15 Dec 2011 03:34:36 +0000 (14:34 +1100)
committerNeilBrown <neilb@suse.de>
Thu, 15 Dec 2011 03:34:36 +0000 (14:34 +1100)
commit2d04d7e5c38b107905aea37277601d889ecf2302
treefad36508ef2df965980bc3628a946dbc72a1e6cb
parenta6482415178f1a834e15d7017a70547d0e965ff0
FIX: Do not allow for multiple reshape_array() execution during reshape_container() call

It can happen during reshape restart that reshape_array() can exit without
error (e.g. Grow.c:1915) and reshape is not moved to next array.
reshape_array() is called again for the same device.
Do not allow for such execution and check if last reshaped array is not
the current one.
This patch can be treat not as solution, but it allows for such errors
detection.

Signed-off-by: Adam Kwolek <adam.kwolek@intel.com>
Signed-off-by: NeilBrown <neilb@suse.de>
Grow.c