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:28:15
--AhhlLboLdkugWU4S
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 dont think so for it defaults to the getdefault label AFAIK and thats the
one i'm trying to modify. The number of sectors on the disc remain OK, its
just the partitions itself that get overwritten/postprocessed. I can't seem
to find the actual postprocessing done. In sys/dev/scsipi/cd.c ioctl code
for get disclabel there is no copyout() so somewhere up in the tree will
have to do the copyout...
Cheers,
Reinoud
--AhhlLboLdkugWU4S
Content-Type: application/pgp-signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (NetBSD)
iQEVAwUBQ6Ad6IKcNwBDyKpoAQJVlAf/avFBrYo041rr3ngOYVaEGhMXQ0AWcUvI
VGfgJ9hH1w8WKvky2Iy17oc8B6XWS4oVExdM8zJf3sAqu0TJvobAaeOlvVE+E19G
dHOput4ILtNSWKpRYkABaEbdFQf9thwdB7E51HlGL/uLR65n1IyFhMdkDrQ0Hk3K
dH3oZLX4rIfrXxlKe9MKLJdybiD+PVAPdilfq4eaWqdIyZiGI6cJffFv2L6/L9W9
w1PRTxlGpilIgiSToOT0PYXAOPBHeQEjj9RwfD9WNXVmxVgHPLCZZRN8K7e8vXDu
PABxGAInq5tEl0vzoLSX9YL1+hlL87++bNFU0zwOJPCsCN9aXL9e5w==
=YaFv
-----END PGP SIGNATURE-----
--AhhlLboLdkugWU4S--