Subject: Re: kern/29211: Old partition name limits on kernel "config" directive
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: Quentin Garnier <cube@cubidou.net>
List: netbsd-bugs
Date: 02/03/2005 11:09:02
The following reply was made to PR kern/29211; it has been noted by GNATS.

From: Quentin Garnier <cube@cubidou.net>
To: gnats-bugs@netbsd.org
Cc: kern-bug-people@netbsd.org, gnats-admin@netbsd.org,
	netbsd-bugs@netbsd.org
Subject: Re: kern/29211: Old partition name limits on kernel "config" directive
Date: Thu, 3 Feb 2005 12:08:07 +0100

 --WplhKdTI2c8ulnbP
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 Content-Transfer-Encoding: quoted-printable
 
 On Thu, Feb 03, 2005 at 09:33:00AM +0000, spam@pianocast.net wrote:
 > >Number:         29211
 > >Category:       kern
 > >Synopsis:       Old partition name limits on kernel "config" directive
 [...]
 > >Description:
 >   Under a recent i386 netbsd-2 checkout (and maybe under earlier RELs,
 > although I happened to notice it under 2.0) the name limit on
 > partitions in the
 >=20
 >     config <exec_name> root on <rootdev> [stuff]
 >=20
 > directive of kernel config files doesn't appear to support the updated
 > 16 partition-per-drive limit.  In other words, the statement
 >=20
 >     config	netbsd	root on sd0o
 >=20
 > results in an error ("invalid root device name `sd0o'"), whereas if
 > one sets up sd0h with geometry identical to that of sd0o, this one,
 >=20
 >     config	netbsd	root on sd0h
 >=20
 > will succeed.  I'm guessing that it's because h is in the first 8
 > partitions and o is not?
 
 This is because config(8) doesn't know about the kludgy way we assign
 minors to partitions on i386.
 
 A workaround would be to do
 
 config netbsd root on major 4 minor 524294
 
 Right now I don't see a clean way to correct that issue.  Introducing
 MD code in config(8) would be gross.
 
 --=20
 Quentin Garnier - cube@cubidou.net - cube@NetBSD.org
 "When I find the controls, I'll go where I like, I'll know where I want
 to be, but maybe for now I'll stay right here on a silent sea."
 KT Tunstall, Silent Sea, Eye to the Telescope, 2004.
 
 --WplhKdTI2c8ulnbP
 Content-Type: application/pgp-signature
 Content-Disposition: inline
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.2.6 (NetBSD)
 
 iQEVAwUBQgIGF9goQloHrPnoAQLoxggAjhEDXhvbHeSiXubD4H+VhPnA56ctuxaJ
 7TrnJ+FKQc95FWNT4DXTXfte3gZ2EIXB4CxNt3Sj44iU9lA7N5m4vXQB08oGhbYm
 5riRvI8CuxGkXPhl2vEampMFk3U4u6+kfDCagCJwPwTaZ6VBrkQ3DO59sHtXIY/J
 GFECO1qTrdtGbqc+pk8VxmYlDtVIqyw6l+rpCt6S5/ElWPDUV0iuz+3t1e06HSxV
 tqZL3wLbmrJ84uro3fs1i7PJYXHIDt6hNJzqkyQvSZfsIGSfPQFbon2w8ljI3LTi
 kzOb2RuuSoPtwMnN6TtQ4rkBiTl+DOjmYWeOMd0pHODS8AE8YnJIIA==
 =sFJ7
 -----END PGP SIGNATURE-----
 
 --WplhKdTI2c8ulnbP--