1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-05 13:18:20 +03:00
lvm2/lib/format1
Dave Wysochanski 1bd72d90a4 Add vg_reduce to metadata.c and metadata-exported.h
This function behaves a little bit different than vg_reduce_single, because
it allowes to remove even the latest pv. This has been done to be consistent
to lvm_vg_create, which creates an empty vg.

removed_pvs has been added to the volume_group struct. vg_reduce adds remove
pvs to this list to be able to commit the changes for the pvs in lvm_vg_comm
in liblvm2app.

Initialize removed_pvs list in format-specific volume_group constructors.
Ideally, we should have a base constructor here that initializes the general
non-format specific members of struct volume_group.  But until then, there
are multiple places to initialize these members.  Maybe a better patch would
be a base constructor patch for struct volume_group.  That is more work
though.

Signed-off-by: Dave Wysochanski <dwysocha@redhat.com>
Signed-off-by: Thomas Woerner <twoerner@redhat.com>


Author: Dave Wysochanski <dwysocha@redhat.com>
2009-07-27 17:43:39 +00:00
..
.exported_symbols .export.sym generation 2004-03-26 14:51:23 +00:00
disk-rep.c Use log_error macro consistently throughout in place of log_err. 2009-07-15 20:02:46 +00:00
disk-rep.h Tidy format1 import LV function. 2009-05-13 21:24:12 +00:00
format1.c Add vg_reduce to metadata.c and metadata-exported.h 2009-07-27 17:43:39 +00:00
format1.h split orphan VG by format type 2008-02-06 15:47:28 +00:00
import-export.c Use log_error macro consistently throughout in place of log_err. 2009-07-15 20:02:46 +00:00
import-extents.c Use log_error macro consistently throughout in place of log_err. 2009-07-15 20:02:46 +00:00
layout.c Some whitespace tidy-ups. 2008-01-30 14:00:02 +00:00
lvm1-label.c Use log_error macro consistently throughout in place of log_err. 2009-07-15 20:02:46 +00:00
lvm1-label.h Fix inconsistent licence notices: executables are GPLv2; libraries LGPLv2.1. 2007-08-20 20:55:30 +00:00
Makefile.in Right, a simple build (without options) is working again. 2008-11-03 22:14:30 +00:00
vg_number.c Right, a simple build (without options) is working again. 2008-11-03 22:14:30 +00:00