Subject: Re: default generated disklabels get overwritten?
To: Manuel Bouyer <bouyer@antioche.eu.org>
From: Reinoud Zandijk <reinoud@netbsd.org>
List: tech-kern
Date: 12/14/2005 14:56:16
--2B/JsCI69OhZNC5r
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

On Wed, Dec 14, 2005 at 02:16:39PM +0100, Manuel Bouyer wrote:
> AFAIK the disklabel is reset to default when the device is closed.
> Maybe you're running into that ?

I think i've found the curlpit: in `kern/subr_disc_mbr.c' that NetBSD/i386 
uses a `dummy' disclabel is created just with the parameters i've seen 
showing up again and again. What is happening i think is that in 
scsipi/cd.c the returned error is not processed OK when no disclabel is 
found on the disc and thus sets this dummy to be the correct one.

I'll have a look into that.

Reinoud


--2B/JsCI69OhZNC5r
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (NetBSD)

iQEVAwUBQ6AkeYKcNwBDyKpoAQKwGQgAk3Jos3jQGexJ6HGsR+swdgH+fCYVpOIK
9wQ3emSz8QXMje5ISxIymtImRztg0ZlXk0sNCo2ZXbLZ+7cUiwMDB/CshC6f+pkU
vjfYxgfNSLLNS6gX41LvDul/F4bwZ1fjDmmFVs3SifXoHLXyPanoMJQtDSLFoCYU
eXzlz347ualmhCxCq0V1palPlhEP+tu6J2vOLdL3bIDN2Zy/RukbN9cVBCqOSrDI
BKJ5Qcrwxhk0HZKiN/vT0E0+PEqTmGgITaOk3xVVfXDyNZZhn2ocRpcJJZCwGZ8x
Ozcd5W6Bu4hNEOSi8qky4JK6/9rXEa6vyv2Y+g+Dd6wsbUOAHMGoCQ==
=U5Et
-----END PGP SIGNATURE-----

--2B/JsCI69OhZNC5r--