Thread (36 messages) flat view 36 messages, 2 authors, 2011-01-06
STALE5719d

[PATCH 31/34] imsm: FIX: do not repair raid4 arrays

From: Adam Kwolek <hidden>
Date: 2011-01-04 14:39:42
Subsystem: the rest · Maintainer: Linus Torvalds

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

Signed-off-by: Adam Kwolek <redacted>
---

 super-intel.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/super-intel.c b/super-intel.c
index 1be0e72..b01d52a 100644
--- a/super-intel.c
+++ b/super-intel.c
@@ -5432,6 +5432,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;
 
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help