From 4460f8f7c344a0e8c8d454edcaf392e85912c76e Mon Sep 17 00:00:00 2001 From: NeilBrown Date: Tue, 18 May 2010 12:31:29 +1000 Subject: Monitor: don't report the disappearance of a faulty device as SpareActive. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Normally Monitor doesn't see faulty devices in active slots - they get moved away too quickly. But if it does, it reports the "faulty device disappeared" event (when it finally does get moved away) as SpareActive due to insufficient checking. So add a better check. Reported-by: Pierre Vignéras --- Monitor.c | 1 + 1 file changed, 1 insertion(+) diff --git a/Monitor.c b/Monitor.c index b0802f8..8e82797 100644 --- a/Monitor.c +++ b/Monitor.c @@ -391,6 +391,7 @@ int Monitor(mddev_dev_t devlist, ) alert("FailSpare", dev, dv, mailaddr, mailfrom, alert_cmd, dosyslog); else if (i < (unsigned)array.raid_disks && + ! (newstate & (1<devstate[i]&change)&(1<