[parted-devel] Re: [linux-lvm] Proposal for the libLVM project

Otavio Salvador otavio at debian.org
Fri Nov 10 12:21:48 UTC 2006

[ I've removed linux-lvm from cc list but leave parted-devel since
it still on topic]

Alasdair G Kergon <agk at redhat.com> writes:

> Thanks for getting in touch.
> The only library supported for external applications at present is
> liblvm2cmd and this is basically a wrapper around the command line.
> This was a deliberate decision to force people to use the only stable interface
> we have, namely the command line.

Right. Is this library being still maintained?

> The end result should be:
>   a new lvm library API exists which is designed to be maintainable as the
> tools develop and not cause compatibility problems or inhibit anticipated
> future developments;
>   the tools directory uses only the published API;
>   everything available in the API is available directly through the lvm
> command line - there must be no 'hidden' features;

I completely agree with you here.

>   no internal structures are exposed through the library API so we retain
> complete freedom to change internal implementations and data structures.


> The first job is to sketch out possible interfaces for some examples
> like that - 'create a PV', 'create/extend a VG' - based on what the tools
> do today.

Indeed. How do you wish to coordenate this? Should we propose those to
mailing list? Or should us use something like a wiki?

> Further, if there are things that parted wants that are not available
> through the command line today, then put those on the table ASAP and
> we should try to get them implemented through the command line (in parallel
> with work on designing a library).

I don't think so. On parted side we'll probably write another layer
that will be used to "connect" the libparted on external libraries. It
won't be done just for lvm but also for other filesystems like
ext[34], and other's will come later.

        O T A V I O    S A L V A D O R
 E-mail: otavio at debian.org      UIN: 5906116
 GNU/Linux User: 239058     GPG ID: 49A5F855
 Home Page: http://www.freedom.ind.br/otavio
"Microsoft gives you Windows ... Linux gives
 you the whole house."

More information about the linux-lvm mailing list