Date: Sat, 27 Jan 2001 12:27:33 +0200 From: Giorgos Keramidas <keramida@ceid.upatras.gr> To: Josef Karthauser <joe@tao.org.uk> Cc: Warner Losh <imp@village.org>, Matt Heckaman <matt@LUCIDA.CA>, Shawn Barnhart <swb@grasslake.net>, freebsd-stable@FreeBSD.ORG Subject: Re: Limit on the number of disklabel entries? Message-ID: <20010127122733.C49085@hades.hell.gr> In-Reply-To: <20010121235644.A29517@tao.org.uk>; from joe@tao.org.uk on Sun, Jan 21, 2001 at 11:56:44PM %2B0000 References: <Pine.BSF.4.31.0101211713320.53569-100000@epsilon.lucida.ca> <200101212233.f0LMXVs03655@billy-club.village.org> <20010121235644.A29517@tao.org.uk>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <Pine.BSF.4.31.0101211713320.53569-100000@epsilon.lucida.ca> 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 majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010127122733.C49085>