Subject: Re: New "release" snapshot
To: Bob Nestor <rnestor@augustmail.com>
From: Bill Studenmund <wrstuden@nas.nasa.gov>
List: port-mac68k
Date: 12/20/1999 09:46:09
On Sun, 19 Dec 1999, Bob Nestor wrote:

> Bill Studenmund  (wrstuden@nas.nasa.gov) wrote:
> 
> >Don't you at that point know which partitions are which? i.e. a) is here,
> >b) there, & so on? Couldn't you just set a new disklabel into the kernel?
> >
> Sure, that's exactly what needs to be done.  Now how do you convince the 
> kernel that you have a new disklabel and that it should be used instead 
> of the one the kernel currently has incore?

Check out DIOCSDLABEL, which just modifies the in-core label. You pass it
a struct disklabel *, and it loads that. In fact, most disk drivers have
DIOCSDLABEL and DIOCWDLABEL using the same code path except right at the
end where DIOCWDLABEL writes it to disk too.

Take care,

Bill