imsm: FIX: do not repair raid4 arrays

As raid4 is not supported by imsm (this is takeovered raid0)
do not fix degraded raid4 arrays.

Signed-off-by: Adam Kwolek <adam.kwolek@intel.com>
Signed-off-by: NeilBrown <neilb@suse.de>
This commit is contained in:
Adam Kwolek 2011-01-06 19:20:25 +11:00 committed by NeilBrown
parent 1b3cbac57f
commit 89c6788213
1 changed files with 6 additions and 0 deletions

View File

@ -5403,6 +5403,12 @@ static struct mdinfo *imsm_activate_spare(struct active_array *a,
/* No repair during migration */
return NULL;
if (a->info.array.level == 4)
/* No repair for takeovered array
* imsm doesn't support raid4
*/
return NULL;
if (imsm_check_degraded(super, dev, failed) != IMSM_T_STATE_DEGRADED)
return NULL;