]> git.ipfire.org Git - thirdparty/mdadm.git/commit
super1: encourage data alignment on 1Meg boundary
authorNeilBrown <neilb@suse.de>
Wed, 3 Mar 2010 04:22:56 +0000 (15:22 +1100)
committerNeilBrown <neilb@suse.de>
Wed, 3 Mar 2010 04:22:56 +0000 (15:22 +1100)
commita380e2751efea7dfe8acf0b95419c65ccacfa7cf
tree95c63e7b06391723b16695a9e0fd155ce3b2e405
parentd1d3482b562369b0d32e4267c2e245a3371d1f10
super1: encourage data alignment on 1Meg boundary

For 1.1 and 1.2 metadata where data_offset is not zero,
it is important to align the data_offset to underlying
block size.

We don't currently have access to the particular device
in avail_size so just try to force to a 1Meg boundary.

Also default 1.x metadata to 1.2 as documented.

Signed-off-by: NeilBrown <neilb@suse.de>
super1.c