Subject: Re: sd: MEDIA_LOADED not reset on last close?
To: None <leo@ahwau.ahold.nl>
From: Charles M. Hannum <mycroft@mit.edu>
List: tech-kern
Date: 05/04/1996 18:57:46
Leo Weppelman <leo@wau.mis.ah.nl> writes:

> 
> I was wondering if there is a good reason why the sdclose function does not
> reset the SDEV_MEDIA_LOADED flag on the last close on the device.

Because it shouldn't be necessary, it would largely defeat the point
of the flags, and it would take longer to open the device a second
time.  Arguably, these are minor points.

> _After_
> modifying the native paritioning, it is essential to re-read the disklabel
> from disk.

Or you could do a DIOCSDLABEL to change the in-core label.