Source-Changes-D archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: src

On Mon, Jul 02, 2012 at 10:42:18PM +0000, David Brownlee wrote:
> Module Name:  src
> Committed By: abs
> Date:         Mon Jul  2 22:42:18 UTC 2012
> Modified Files:
>       src/distrib/vax/miniroot:
>       src/sys/arch/vax/include: disklabel.h types.h
>       src/sys/sys: bootblock.h
> Log Message:
> - Increase MAXPARTITIONS for vax from 8 to 16, using the standard NetBSD
>   mechanism to ensure all existing /dev nodes continue to work

How do you detect the format of an existing disklabel?

I remember looking at this a few years back and deciding it was all fubar.
IIRC there is a 'partition count' field, but that is used as an upper
bound for the number of used partitions, not the size of the table.
I sort of remember that the number of partition slots tended to depend
on LABELOFFSET - and was 16 if that would fit into the available space.

vax might be the only system that has (emulated?) disks where the disk
controller doesn't return the actual disk geometry/size - requiring it
be stored in the label?


David Laight:

Home | Main Index | Thread Index | Old Index