]> git.ipfire.org Git - thirdparty/mdadm.git/commit - super1.c
super1: Always round data offset to 1M
authorPawel Baldysiak <pawel.baldysiak@intel.com>
Wed, 26 Jul 2017 14:41:54 +0000 (16:41 +0200)
committerJes Sorensen <jsorensen@fb.com>
Thu, 27 Jul 2017 09:32:32 +0000 (05:32 -0400)
commit795bd44ed11aafbed2628ba21216c667371e79a5
tree1ef9db054cc2f403b06a5cd3a0954f1faf49c91f
parentcb91230c87e02bf885759e9218abea629ab9f4b9
super1: Always round data offset to 1M

Currently if metadata requires more then 1M,
data offset will be rounded down to closest MB.
This is not correct, since less then required space is reserved.
Always round data offset up to multiple of 1M.

Signed-off-by: Pawel Baldysiak <pawel.baldysiak@intel.com>
Signed-off-by: Jes Sorensen <jsorensen@fb.com>
super1.c