]> sourceware.org Git - lvm2.git/commit
Add lvm_vg_* APIs to create and modify VGs.
authorDave Wysochanski <dwysocha@redhat.com>
Tue, 14 Jul 2009 03:02:14 +0000 (03:02 +0000)
committerDave Wysochanski <dwysocha@redhat.com>
Tue, 14 Jul 2009 03:02:14 +0000 (03:02 +0000)
commit930a1434ac32a4aa7d7f6a10813d81c7417527f5
tree7dd0d992ccabd425c41985279b0766e356d19322
parent9c5a7b048166a8fc2e2350ac728d32bae387a157
Add lvm_vg_* APIs to create and modify VGs.

Add some liblvm APIs for VGs.  Most of these APIs simply call into the internal
liblvm library.  Ideally we should call the liblvm functions directly from
the tools.  However, until we convert more of the code to liblvm functions,
things like the cmd_context will get in the way.  For now just implement the
liblvm functions as wrappers around the internal functions, with a little
error checking and return code handling.  We put all these vg APIs into a
new file, lvm_vg.c

The following APIs are implemented:
lvm_vg_create, lvm_vg_extend, lvm_vg_set_extent_size, lvm_vg_write,
lvm_vg_remove, lvm_vg_close.

Still TODO:
- cleanup error handling by using lvm_errno() and related APIs
- cleanup naming / clarify which functions commit to disk vs not
- implement more 'set' functions
- decide on 'set' / 'change' nomenclature

Signed-off-by: Dave Wysochanski <dwysocha@redhat.com>
Acked-by: Alasdair G Kergon <agk@redhat.com>
liblvm/Makefile.in
liblvm/lvm.h
liblvm/lvm_vg.c [new file with mode: 0644]
This page took 0.03676 seconds and 5 git commands to generate.