Subject: Re: sd rereads
To: Chris G. Demetriou <cgd@netbsd.org>
From: Manuel Bouyer <bouyer@antioche.lip6.fr>
List: tech-kern
Date: 09/01/1999 15:14:04
On Tue, Aug 31, 1999 at 04:02:26PM -0700, Chris G. Demetriou wrote:
> der Mouse  <mouse@Rodents.Montreal.QC.CA> writes:
> > Back a version or two ago, on last close of an sd device, almost all
> > state would be cleared - in particular, on next open the disklabel
> > would be reread.
> 
> If it no longer does this, i'd call that a "serious bug."

I think I know why it does this: for disks without NetBSD disklabel,
you can but an incore disklabel (disklabel, mbrlabel, ...) but then you
had to keep a partition open, otherwise the in-core label would be lost.
I think now it re-reads the label only when the device has changed.
I think this went in as a side effect of the changes I made to open a device
without media, but it was intentionally left in.

Doesn't 'disklabel -r' re-read it ?

--
Manuel Bouyer, LIP6, Universite Paris VI.           Manuel.Bouyer@lip6.fr
--