svn commit: r221363 - head/sbin/geom/class/part

Alexander Motin mav at FreeBSD.org
Thu May 12 19:23:23 UTC 2011


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


More information about the svn-src-all mailing list