]> git.ipfire.org Git - thirdparty/mdadm.git/commit - super-ddf.c
DDF: find_vdcr: account for secondary RAID level
authormwilck@arcor.de <mwilck@arcor.de>
Wed, 3 Jul 2013 20:27:47 +0000 (22:27 +0200)
committerNeilBrown <neilb@suse.de>
Mon, 8 Jul 2013 05:28:31 +0000 (15:28 +1000)
commitbaba3f4e8119c5e94c4544f5e14229a0d9219189
treed53b76299a4a02c07b1dd785c6932de766c10f00
parenta2aa439e99874a54a1281a7098a267b6125d5806
DDF: find_vdcr: account for secondary RAID level

If secondary RAID level is taken into account, translation between
the md RAID member (raid_disk) and the index of a physical disk
in a BVD becomes more complex.

Also, take into account that the member list can have unused entries
(this is independent of secondary RAID level).

Adapt usage of find_vdcr() accordingly

Signed-off-by: Martin Wilck <mwilck@arcor.de>
Signed-off-by: NeilBrown <neilb@suse.de>
super-ddf.c