[lvm-devel] more complex example_cmdlib.c ?

Zdenek Kabelac zkabelac at redhat.com
Mon Nov 25 15:11:18 UTC 2013


Dne 25.11.2013 15:28, Oliver Rath napsal(a):
> Hi list,
>
> Im looking for examples using lvm in c (or c++) Code. I realized, that
> there is a really terse example in lvm/doc/example_cmdlib.c.
>
> Is it possible to include a more complex example for doing the
> lvm2-tasks like vgcreate, lvcreate incl. using thinpools, making thin
> snaps etc. ?
>
> Btw, this would be useful for the python-example, too.
>
>

Maybe look at  test subdir  - there  are some API tests and
also some python scripts which are trying to exercise some
supported pieces.

NOTE: this API is being seen as experimental - so it's quite away for having 
the same usability as a native lvm2 command line.

Zdenek





More information about the lvm-devel mailing list