On Sun, Jan 21, 2001 at 11:56:44PM +0000, Josef Karthauser wrote:
> On Sun, Jan 21, 2001 at 03:33:31PM -0700, Warner Losh wrote:
> > In message <[EMAIL PROTECTED]> Matt 
>Heckaman writes:
> > : Brand new system, installed 3 days ago, 4.2-RELEASE. Creating the
> > : partition on the newly sliced da1 via sysinstall put it on "e".
> > 
> > 'e' is the first slice that sysinstall uses.  Since you wanted the
> > whole disk, it gave you the whole disk as 'e'.  Nothing magical about
> > it.  'c' being the whole disk *IS* magical.
> 
> Does 'c' include the disklabel itself, and the boot blocks?

Actually in /usr/src/sys/sys/disklabel.h you can see three constants defined.

    #define LABEL_PART      2    /* partition containing label */
    #define RAW_PART        2    /* partition containing whole disk */
    #define SWAP_PART       1    /* partition normally containing swap */

The code uses LABEL_PART when it wants to access the partition containing the
entire disk, together with the disklabel, but as you can see, this is the same
as RAW_PART which is defined to `2'.  Now, lemme guess... 'a', 'b', 'c'..
'0', '1', '2'.. SWAP_PART is '1' and default swap partition is 'b'.
RAW_PART is '2' and the default `entire disk' partition is 'c'.
HAHHAHHH.  I'm beginning to love this source thing!
Absolutely amazing, how clearly ideas and things can jump out on you, if you
read a few lines of code :-)

Cheers,
Giorgos.


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-stable" in the body of the message

Reply via email to