]> git.ipfire.org Git - thirdparty/mdadm.git/commit - Monitor.c
Monitor: fix reporting for Fail vs FailSpare etc.
authorNeilBrown <neilb@suse.de>
Mon, 4 Jun 2012 02:57:52 +0000 (12:57 +1000)
committerNeilBrown <neilb@suse.de>
Mon, 4 Jun 2012 02:57:52 +0000 (12:57 +1000)
commit721b662b5b33830090c220bbb04bf1904d4b7eed
treea6d36fe8fdfa986d6611051d818e7444ad29066e
parent0f760384ebc92d81a988c1501e4a493ef064ad66
Monitor: fix reporting for Fail vs FailSpare etc.

The tests here were specific to 0.90 metadata and didn't
work properly for 1.x metadata, where a device's "number"
doesn't change.

By checking if this is a new array we can avoid some
corner cases.  Then we test mostly based on state and
not based on 'number' at all.

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