On 12.05.2011 18:53, Andrey V. Elsukov wrote:
On 12.05.2011 19:15, Ulrich Spörlein wrote:
   Add "-a alignment" option to gpart(8). When it specified gpart(8)
   tries to align partition start offset and size to be multiple of
   alignment value.


Aligned to what? The disk or the partition scheme? Consider someone
having a GELI partition of arbitrary alignment, how would a bsdlabel or
GPT label inside this GELI partition be aligned when 4K alignment is
requested?

Each partition has three mandatory parameters: start offset, end offset
and partition type. These offsets are within top level provider. With 4K
alignment gpart(8) would try to adjust partition start and end offset to
be multiple of 4K.

Most of GEOM classes report enough alignment data (stripesize and stripeoffset). They should be taken to account to properly handle alignment partitions on cascaded partitioned tables (bsdlabel inside MBR).

--
Alexander Motin
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to