]> git.ipfire.org Git - thirdparty/mdadm.git/commit - super-intel.c
imsm: correct start offset handling at create time
authorDan Williams <dan.j.williams@intel.com>
Mon, 8 Dec 2008 18:38:59 +0000 (11:38 -0700)
committerDan Williams <dan.j.williams@intel.com>
Mon, 8 Dec 2008 23:59:17 +0000 (16:59 -0700)
commit0dcecb2e2dfe98631494b34f7770b17f51350b73
treeae81f3a33a85eb4e564f4aeb9df6946a32864aca
parent03bcbc654f56a2bba0b82cc0bd4bbbab62425eba
imsm: correct start offset handling at create time

imsm metadata requires all members of a raid volume to start at the same
offset.  So, incrementally build a composite disk from all the
candidates passed to ->validate_geometry.  After each disk is added
merge the extents and search for a common start offset that satisfies
the requested raid device size.

Signed-off-by: Dan Williams <dan.j.williams@intel.com>
super-intel.c