Subject: Re: Formatting a drive
To: Henry B. Hotz <hotz@jpl.nasa.gov>
From: Bill Studenmund <wrstuden@zembu.com>
List: port-mac68k
Date: 02/22/2001 09:25:10
On Thu, 22 Feb 2001, Henry B. Hotz wrote:
> Actually I was thinking more of the case where the drive was
> completely blank: no APM at all. In that case though the disklabel
> code would probably have a fit and you wouldn't be able to see a 'c'
> partition in the first place I'm guessing.
Ahh. There's code to take care of this case. Each disk driver (sd, wd, cd,
ccd, vnd, etc.) has a XXgetdefaultlabel routine which will make a default
label. For drives where we can detect the size (scsi, ata, for instance),
this routine will fill in a struct disklabel with a whole-disk partition
that takes up the whole disk. For ports other than i386 & other
MBR-derived ones, that's partition c.
So there will always be a c partition. :-)
Take care,
Bill