Subject: Re: To stick or not to stick [ disklabels ]
To: Leo Weppelman <leo@wau.mis.ah.nl>
From: Chris G. Demetriou <cgd@netbsd.org>
List: tech-kern
Date: 12/09/1999 15:11:54
Leo Weppelman <leo@wau.mis.ah.nl> writes:
> Add an ioctl, DIOCSTICK, that take a boolean argument. When false, drop
> the disklabel on the next full close, when true, retain the disklabel.
So, from this name, you'd think it was an ioctl which caused disks to
suffer stication, or something.
the notion of 'label' should be in the name. 8-)
> For sd.c, this can be implemented by defining an SDEV_STICKY_LABEL flag
> and changing the end of sdclose() to something like:
> [ ... ]
as long as the right thing happens on other, random media change
events (does it now? I dunno), it looks good enough to me.
cgd
--
Chris Demetriou - cgd@netbsd.org - http://www.netbsd.org/People/Pages/cgd.html
Disclaimer: Not speaking for NetBSD, just expressing my own opinion.