]> 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)
commit10a3ba33a5f7a9325d31b7145df8f4e48cddfc2d
tree7dd0d992ccabd425c41985279b0766e356d19322
parentdb0beacf02e83d9f9ccbc8166234ba69219ff555
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.031074 seconds and 5 git commands to generate.