]> git.ipfire.org Git - thirdparty/mdadm.git/commit
FIX: Unfreeze array on success only
authorAdam Kwolek <adam.kwolek@intel.com>
Thu, 10 Mar 2011 07:30:42 +0000 (08:30 +0100)
committerNeilBrown <neilb@suse.de>
Mon, 14 Mar 2011 07:12:57 +0000 (18:12 +1100)
commitbcc9e9edd0669a1d99b77e38dc94ae8a644f4d36
treea4c74b97d3809a86ff1068a563caf22112d62d17
parentca6529edf6f7216003863a9ea847e6689693bd96
FIX: Unfreeze array on success only

Unfreeze array on success only.
rv is initialized by restart variable so we have 2 cases.
1. regular reshape start
rv == restart == 0
   this means that real error (returned by reshape) can cause leaving container frozen
   If array is not touched by reshape it can be unfrozen
2. During reshape restart even untouched array under reshape is left unfrozen,
   If reshape is started do not unfreeze array on error also.

This allows user for array repair action
(mdmon will not change array state).

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