freebsd-dev/sbin/geom
Andrey V. Elsukov 6c7e04f0f3 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
2011-05-15 16:16:48 +00:00
..
class Some partitioning schemes want to have partitions that are aligned 2011-05-15 16:16:48 +00:00
core MFgraid/head r217014: 2011-03-24 19:11:05 +00:00
misc - Simplify code by using g_*() API. 2010-09-23 12:04:12 +00:00
Makefile Switch the default WARNS level for sbin/ to 6. 2009-10-19 16:00:24 +00:00
Makefile.inc Rename the generic "CLASS" to the more specific "GEOM_CLASS". 2010-12-15 23:45:12 +00:00