]> git.ipfire.org Git - thirdparty/mdadm.git/commit
DDF: get_extents: support secondary RAID level
authormwilck@arcor.de <mwilck@arcor.de>
Wed, 3 Jul 2013 20:27:57 +0000 (22:27 +0200)
committerNeilBrown <neilb@suse.de>
Mon, 8 Jul 2013 06:49:23 +0000 (16:49 +1000)
commitfcc22180b171ef9ace5a60efc702ac66927c5faa
tree09480a6877e6cd42766779a1cd25ebbaa47fe43e
parent57a666623ddc6e0e2691ca31ed5445a91d8ef30a
DDF: get_extents: support secondary RAID level

Use get_pd_index_from_refnum() in get_extents to determine
matching VD. This will ensure RAID 10 (secondary RAID level)
support, too.

This also fixes a bug in the previous get_extents() code (missing
__be16_to_cpu for conf.prim_elmnt_count).

DDF test case (10ddf-create) verified.

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