Great, thanks. I was about to make a diff for the -T template section
below that and change "and percentage of disk" to "and percentage of
remaining space", but that certainly clarifies it.

Brian Conway

On Mon, Dec 21, 2015 at 1:43 PM, Otto Moerbeek <[email protected]> wrote:
> On Mon, Dec 21, 2015 at 05:16:31PM +0100, Otto Moerbeek wrote:
>
>> On Mon, Dec 21, 2015 at 09:30:12AM -0600, Brian Conway wrote:
>>
>> > I'm hoping someone can enlighten me, as I think I'm misunderstanding
>> > the man page.
>> >
>> > I'm using a simplified test case with a 12 GB disk and a template of
>> > the following:
>> > /     256M
>> > swap  256M
>> > /tmp  256M
>> > /var  256M
>> > /usr  5.5G-* 80%
>> > /home 1G-*   20%
>> >
>> > Based on how I'm reading the man page, disklabel should first allocate
>> > all the minimums, and then allocate the remaining free space evenly
>> > between /usr and /home. It would first hit the 20% limit on /home
>>
>> nope, it will add 80% of the unallocated space to /usr and 20% to
>> /home, neither of them has a maxium size.
>>
>>       -Otto
>
> This difff explaines it a bit better in the man page, I believe,
>
>         -Otto
>
>
> Index: disklabel.8
> ===================================================================
> RCS file: /cvs/src/sbin/disklabel/disklabel.8,v
> retrieving revision 1.117
> diff -u -p -r1.117 disklabel.8
> --- disklabel.8 16 Oct 2015 04:20:54 -0000      1.117
> +++ disklabel.8 21 Dec 2015 19:41:39 -0000
> @@ -505,9 +505,9 @@ and are not modified during the allocati
>  Disk size determines the set of partitions which are created.
>  Each partition is allocated space between a specified minimum
>  and maximum.
> -Each partition is allocated its minimum and remaining space
> -is split between the partitions up to their maximum allowed space,
> -which is a fixed percentage.
> +Initially, each partition is allocated its minimum and remaining space
> +is split between the partitions according to the given percentages,
> +up to their maximum allowed space.
>  Space left after all partitions have reached their maximum size
>  is left unallocated.
>  The sizes below are approximations,

Reply via email to