]> git.ipfire.org Git - thirdparty/mdadm.git/commit
Assembe: fix bug in force_array - it wasn't forcing properly.
authorNeilBrown <neilb@suse.de>
Mon, 21 Oct 2013 22:55:04 +0000 (09:55 +1100)
committerNeilBrown <neilb@suse.de>
Mon, 21 Oct 2013 22:55:04 +0000 (09:55 +1100)
commitf81a2b56c4b437f66aaf5582a9c6b7f5ab2103c4
treecb784ba4c97ccf8f24f9f0441a58346657243158
parenta4921f30ec2ecc2d685573899cb86064b0cd78e9
Assembe: fix bug in force_array - it wasn't forcing properly.

Since 'best' was expanded to hold replacement devices, we might
need to go up to raid_disks*2 to find devices to force.

Also fix another place when considering replacement drives would
be wrong (the 'chosen' device should never be a replacement).

Reported-by: John Yates <jyates65@gmail.com>
Signed-off-by: NeilBrown <neilb@suse.de>
Assemble.c