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

Andrey V. Elsukov bu7cher at yandex.ru
Tue Jun 21 06:23:51 UTC 2011


On 21.06.2011 10:04, Xin LI wrote:
>>>   Mod the offset padding by alignment.  Without this change we may
>>>   pad too much when underlying GEOM object have a zero stripesize.
> 
>> No. In any way offset value could not be greater than mediasize.
> I don't think this changeset do anything with mediasize?

I did mean that it could not pad too much. When stripesize is zero the
stripeoffset points to real offset from the beginning of device.
In case when we have nested partitioning schemes like MBR + BSD,
stripeoffset of BSD slice could help align partition to the device.

>> And it do nothing when alignment value is 1.
> 
> No, an alignment value of 1 makes offset = 0, which is the intended
> behavior.
> 
> Or did I misunderstood the code?

The problem that Kris reported was not here.
I think this change is just for the reassurance.

-- 
WBR, Andrey V. Elsukov

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
Url : http://lists.freebsd.org/pipermail/svn-src-head/attachments/20110621/114c3102/signature.pgp


More information about the svn-src-head mailing list