]> git.ipfire.org Git - thirdparty/mdadm.git/commit
Assemble: don't ever consider a 'spare' to be the 'most recent'.
authorNeilBrown <neilb@suse.de>
Mon, 2 Sep 2013 01:48:06 +0000 (11:48 +1000)
committerNeilBrown <neilb@suse.de>
Mon, 2 Sep 2013 01:48:06 +0000 (11:48 +1000)
commita792ece6768143ea557c63e35437536b9d235bb4
tree2f74d163cd3d8ba12a74e7508e15e3c1487427ef
parent2f1bcf43d93a991845b2ebee76850bd4dc5bc7fc
Assemble: don't ever consider a 'spare' to be the 'most recent'.

If all devices have the same event count and the first one is a spare,
then that spare will be the 'most_recent'.
However then other devices will think the 'most_recent' has failed
(for v0.90 metadata) and will be rejected from the array.

So never consider a 'spare' to be 'most recent'.

Reported-by: Andreas Baer <synthetic.gods@gmail.com>
Signed-off-by: NeilBrown <neilb@suse.de>
Assemble.c