]> git.ipfire.org Git - thirdparty/mdadm.git/commit
ddf: allow a non-spare to be used to recovery a missing device.
authorNeilBrown <neilb@suse.de>
Tue, 14 Aug 2012 23:59:55 +0000 (09:59 +1000)
committerNeilBrown <neilb@suse.de>
Tue, 14 Aug 2012 23:59:55 +0000 (09:59 +1000)
commite0e7aeaa186831d1811c7597b826da6bfa655d25
tree0c61b3fa9e673fd684c2ca03f4ed528f79073663
parent613b0d174d851cfac4df8925d53d345a5098d811
ddf: allow a non-spare to be used to recovery a missing device.

If a DDF has two arrays sharing devices and one device fails, then
as soon as the spare is used to recover one of the arrays it isn't
spare any more and so is not chosen for the other array.

Work around this for now by allowing a non-spare to be used if it has
enough space.

Reported-by: Albert Pauw <albert.pauw@gmail.com>
Signed-off-by: NeilBrown <neilb@suse.de>
super-ddf.c