1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00
LVM2 mirror repository https://sourceware.org/lvm2/
Go to file
Dave Wysochanski 930a1434ac 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>
2009-07-14 03:02:14 +00:00
autoconf extended configure with --enable-profiling for compiling code with gcov info 2008-06-27 15:35:09 +00:00
daemons Change exit() to _exit() in the child process. exit flushes stdio file buffers, 2009-07-13 21:26:41 +00:00
doc Use the MD device's stripe-width, instead of chunk_size, to align the 2009-07-06 19:04:24 +00:00
include Introduce lvm2_install target. 2009-05-11 10:28:45 +00:00
lib Define handles to liblvm objects for pv, vg, lv, lvseg, pvseg. 2009-07-14 03:00:30 +00:00
libdm Add dm_log_with_errno and dm_log_with_errno_init, deprecating the old 2009-07-10 09:59:37 +00:00
liblvm Add lvm_vg_* APIs to create and modify VGs. 2009-07-14 03:02:14 +00:00
man Fix dev name mismatch in vgcreate man page example. 2009-07-13 11:25:35 +00:00
old-tests Correct typo in comments: s/is part of the LVM2/is part of LVM2/. 2007-09-21 10:16:45 +00:00
po Add dm_log_with_errno and dm_log_with_errno_init, deprecating the old 2009-07-10 09:59:37 +00:00
scripts Various vgimportclone fixes: 2009-06-17 15:47:01 +00:00
test Change exit() to _exit() in the child process. exit flushes stdio file buffers, 2009-07-13 21:26:41 +00:00
tools Remove READ_REQUIRE_RESIZEABLE flag from vgsplit. 2009-07-14 02:16:05 +00:00
configure Rename liblvm.so to liblvm2app.so and use configure --enable-applib. 2009-05-22 14:44:59 +00:00
configure.in Rename liblvm.so to liblvm2app.so and use configure --enable-applib. 2009-05-22 14:44:59 +00:00
COPYING Outline docs 2001-12-31 16:12:40 +00:00
COPYING.LIB Fix inconsistent licence notices: executables are GPLv2; libraries LGPLv2.1. 2007-08-20 20:55:30 +00:00
INSTALL quick review of docs 2008-11-04 17:49:22 +00:00
make.tmpl.in Introduce lvm2_install target. 2009-05-11 10:28:45 +00:00
Makefile.in Rename liblvm.so to liblvm2app.so and use configure --enable-applib. 2009-05-22 14:44:59 +00:00
README quick review of docs 2008-11-04 17:49:22 +00:00
VERSION post-release 2009-07-01 09:31:46 +00:00
VERSION_DM post-release 2009-07-01 09:31:46 +00:00
WHATS_NEW Remove READ_REQUIRE_RESIZEABLE flag from vg_read() interface - no users. 2009-07-14 02:19:19 +00:00
WHATS_NEW_DM Add dm_log_with_errno and dm_log_with_errno_init, deprecating the old 2009-07-10 09:59:37 +00:00

This tree contains the LVM2 and device-mapper tools and libraries.

For more information about LVM2 read the changelog in the WHATS_NEW file.
Installation instructions are in INSTALL.

There is no warranty - see COPYING and COPYING.LIB.

Tarballs are available from:
  ftp://sources.redhat.com/pub/lvm2/

To access the CVS tree use:
  cvs -d :pserver:cvs@sources.redhat.com:/cvs/lvm2 login
  CVS password: cvs
  cvs -d :pserver:cvs@sources.redhat.com:/cvs/lvm2 co LVM2

Mailing list for general discussion related to LVM2:
  linux-lvm@redhat.com
  Subscribe from https://www.redhat.com/mailman/listinfo/linux-lvm

Mailing list for LVM2 development, patches and commits:
  lvm-devel@redhat.com
  Subscribe from https://www.redhat.com/mailman/listinfo/linux-lvm

Mailing list for device-mapper development, including kernel patches
and multipath-tools:
  dm-devel@redhat.com
  Subscribe from https://www.redhat.com/mailman/listinfo/dm-devel