md/raid1: recognise replacements when assembling arrays.
authorNeilBrown <neilb@suse.de>
Thu, 22 Dec 2011 23:17:57 +0000 (10:17 +1100)
committerNeilBrown <neilb@suse.de>
Thu, 22 Dec 2011 23:17:57 +0000 (10:17 +1100)
commitc19d57980b38a5bb613a898937a1cf85f422fb9b
treeddc9f7ae53a4cd0464240ec8c49c03d35823a103
parent8c7a2c2bcfaf0ee29c74437a4814d1aa780d6a26
md/raid1: recognise replacements when assembling arrays.

If a Replacement is seen, file it as such.

If we see two replacements (or two normal devices) for the one slot,
abort.

Signed-off-by: NeilBrown <neilb@suse.de>
drivers/md/raid1.c