Subject: Re: libahdi [Re: CVS commit: basesrc]
To: Julian Coleman <J.D.Coleman@newcastle.ac.uk>
From: Jason Thorpe <thorpej@nas.nasa.gov>
List: tech-userlevel
Date: 02/10/2000 14:52:51
On Thu, 10 Feb 2000 16:49:03 +0000
Julian Coleman <J.D.Coleman@newcastle.ac.uk> wrote:
> Hmm, API ... some thoughts ...
>
> Purpose of the library ... routines to read native labels _and_ to read
> other ports' disks.
>
> We want to be able to (at least) read the foreign labels, maybe also to
> write them. First, names for functions. Either of the form :
>
> ahdi_readlabel()
> ahdi_writelabel()
I think what we want here is some sort of "disklabel handle", where you
open some device with a partition scheme name, i.e.:
struct disklabel_handle *h;
h = disklabel_open("sd0", "ahdi");
disklabel_read(h, ...);
disklabel_write(h, ...);
etc.
-- Jason R. Thorpe <thorpej@nas.nasa.gov>