Subject: Re: Reloading partition table?
To: Frederick Bruckman <fredb@enteract.com>
From: Dr. Bill Studenmund <wrstuden@loki.stanford.edu>
List: port-mac68k
Date: 08/15/1998 10:28:17
On Sat, 15 Aug 1998, Frederick Bruckman wrote:
> On Fri, 14 Aug 1998, David A. Gatwood wrote:
>
> > Is there a convenient ioctl or something under NetBSD (mac68k) to cause it
> > to reload its notion of the partition table (fake geometry, whatever)? I
> > just took a look at my pdisk mods and noted that I'd #ifdef'ed out the
> > code to do that under linuxppc/MkLinux without replacing it with anything
> > equivalent. Without that, I would expect new partitions not to show
> > up without a reboot, unless the NetBSD kernel regenerates its fake
> > disklabel every time the disklabel is read.... (Does it?) Ideas?
>
> I believe it does. I seem to remember using "dd" to put identical
> partition tables + drivers on two removable cartridges, and finding that
> "disklabel" groks the changed version immediately.
Yes it does re-read the disklabel every time, so there's no in-kernel
version to write. That will change someday, but I think we want more
working things, like color :-), first.
Take care,
Bill