]> git.ipfire.org Git - thirdparty/mdadm.git/commit - Monitor.c
Monitor: don't report the disappearance of a faulty device as SpareActive.
authorNeilBrown <neilb@suse.de>
Tue, 18 May 2010 02:31:29 +0000 (12:31 +1000)
committerNeilBrown <neilb@suse.de>
Tue, 18 May 2010 02:31:29 +0000 (12:31 +1000)
commit4460f8f7c344a0e8c8d454edcaf392e85912c76e
tree45e1570b002a4f8408b4b230d434e9c346fdb959
parentc03ef02d92e4b2a7397f7247ea5a25d932a1a889
Monitor: don't report the disappearance of a faulty device as SpareActive.

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 <pierre@vigneras.name>
Monitor.c