From 89c6788213f59080261cc678815548cd1d2268a1 Mon Sep 17 00:00:00 2001 From: Adam Kwolek Date: Thu, 6 Jan 2011 19:20:25 +1100 Subject: [PATCH] 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 Signed-off-by: NeilBrown --- super-intel.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/super-intel.c b/super-intel.c index 3dba3ca2..d70a7df1 100644 --- a/super-intel.c +++ b/super-intel.c @@ -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; -- 2.47.2