]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Some partitioning schemes want to have partitions that are aligned
authorae <ae@FreeBSD.org>
Sun, 15 May 2011 16:16:48 +0000 (16:16 +0000)
committerae <ae@FreeBSD.org>
Sun, 15 May 2011 16:16:48 +0000 (16:16 +0000)
commit43b24a4ea434e9576e34bd111e557e5b66af4b1e
tree117adb425267d9cd62fe404c42c345ee8f1129a9
parentf3617a6eefeeab421bc921ddfa695525c7866213
Some partitioning schemes want to have partitions that are aligned
with geometry. And they do recalculation of user specified parameters.
MBR, PC98, VTOC8, EBR schemes are doing that. For these schemes an
auto alignment feature (ie. gpart add -a alignment) would not work.
But it can work for GPT and BSD schemes. BSD scheme usualy is created
inside MBR, so we can use knowledge about offset of MBR partition to
calculate aligned values for BSD partitions.

Use "offset" attribute of the parent provider for better alignment.

MFC after: 2 weeks
sbin/geom/class/part/geom_part.c