]> git.ipfire.org Git - thirdparty/mdadm.git/commit - Incremental.c
Assemble/Incr: Don't include spares with too-high event count.
authorNeilBrown <neilb@suse.de>
Mon, 17 Jun 2013 06:55:31 +0000 (16:55 +1000)
committerNeilBrown <neilb@suse.de>
Mon, 17 Jun 2013 06:55:31 +0000 (16:55 +1000)
commitf80057aec5d314798251e318555cb8ac92e4c06f
treea608c1049fce2ca0719c46847ea00afa4b44f7dc
parente2f408a4c03115452fdf467b75a8e1e5eee8cb6e
Assemble/Incr: Don't include spares with too-high event count.

Some failure scenarios can leave a spare with a higher event count
than an in-sync device.  Assembling an array like this will confuse
the kernel.
So detect spares with event counts higher than the best non-spare
event count and exclude them from the array.

Reported-by: Alexander Lyakas <alex.bolshoy@gmail.com>
Signed-off-by: NeilBrown <neilb@suse.de>
Assemble.c
Incremental.c