]> git.ipfire.org Git - thirdparty/mdadm.git/commit - Monitor.c
Monitor: handle v.quick removal of devices better.
authorNeilBrown <neilb@suse.de>
Tue, 22 Mar 2011 03:47:55 +0000 (14:47 +1100)
committerNeilBrown <neilb@suse.de>
Tue, 22 Mar 2011 03:47:55 +0000 (14:47 +1100)
commit38376c2e51fdc31b7e53d285729fb80b756d8d37
tree664394c83196a477532afcfe0f76863ae4900809
parent0cf5ef67bbc8dad949af945ab5dd4b1d9df0d0a9
Monitor: handle v.quick removal of devices better.

If a device fails and then is removed before Monitor sees
the failure, GET_DISK_INFO returns nothing so Monitor relies
on mdstat info where '_' is incorrectly interpreted as 'a spare'.

We should treat '_' as 'removed' - that is safer.

Without this, a v.quick fail+remove gets reported as 'Failed' then
'SpareActive'.

Signed-off-by: NeilBrown <neilb@suse.de>
Monitor.c