]> git.ipfire.org Git - thirdparty/mdadm.git/commit
imsm: use rounded size for metadata initialization
authorTomasz Majchrzak <tomasz.majchrzak@intel.com>
Thu, 30 Mar 2017 14:25:41 +0000 (16:25 +0200)
committerJes Sorensen <Jes.Sorensen@gmail.com>
Thu, 30 Mar 2017 15:54:53 +0000 (11:54 -0400)
commitb53bfba6119d3f6f56eb9e10e5a59da6901af159
tree702cae0f4d9e68a0076a87c5adb4a4662b575817
parent5b2846684ef5172eccc432e3520b79efbc2abba5
imsm: use rounded size for metadata initialization

Array size is rounded to the nearest MB, however number of data stripes
and blocks per disk are calculated using size passed by the user. If
given size is not aligned, there is a mismatch. It's not possible to
assemble raid0 migrated to raid5 since raid5 arrays use number of data
stripes to calculate array size.

Signed-off-by: Tomasz Majchrzak <tomasz.majchrzak@intel.com>
Signed-off-by: Jes Sorensen <Jes.Sorensen@gmail.com>
super-intel.c