Subject: Re: mbrlabel and extended partitions (NetBSD 1.6.1/i386)
To: Luke Mewburn <lukem@netbsd.org>
From: David Laight <david@l8s.co.uk>
List: current-users
Date: 06/07/2003 08:19:13
> The current semantics (of losing the label on last close) may not be
> the best, but it is how we have historically done things; the
> DIOCKLABEL ioctl (which is what "dkctl .... keeplabel yes" sets) is a
> more recent addition which says "keep the label even after last close"
> (and the drivers should be smart enough to flush the label if the
> device goes offline or its a removeable media type and its ejected)
> 
> Whilst I personally agree with your ideas on the change of semantics,
> we have to carefully consider the ramifications of changing the default
> from "don't keep label by default" to "keep label by default" before any
> change is made.

Maybe mbrlabel -w (and maybe without -r) and some variants of disklabel [1]
should do a DIOCKLABEL?

	David

[1] I can't see from the man page which one updates the kernel copy
without doing the disk one!

-- 
David Laight: david@l8s.co.uk