From: Anna Czarnowska Date: Fri, 26 Nov 2010 13:31:15 +0000 (+0100) Subject: Monitor: array that has disappeared doesn't need spares X-Git-Tag: mdadm-3.2~224 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ef15641fb54b45255c167c8b02ea0ed47496b85d;p=thirdparty%2Fmdadm.git Monitor: array that has disappeared doesn't need spares If a degraded array disappears we still have it in statelist with active Signed-off-by: NeilBrown --- diff --git a/Monitor.c b/Monitor.c index 0e916884..d5514e9c 100644 --- a/Monitor.c +++ b/Monitor.c @@ -879,7 +879,7 @@ static void try_spare_migration(struct state *statelist, struct alert_info *info link_containers_with_subarrays(statelist); for (st = statelist; st; st = st->next) if (st->active < st->raid && - st->spare == 0) { + st->spare == 0 && !st->err) { struct domainlist *domlist = NULL; int d; struct state *to = st;