1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-05 13:18:20 +03:00
lvm2/lib/metadata
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
..
lv_alloc.h Calculate mirror log size instead of hardcoding 1 extent size. 2008-12-19 15:24:52 +00:00
lv_manip.c Move _lvcreate into the internal library and rename to lv_create_single. 2009-07-26 02:33:35 +00:00
merge.c Right, a simple build (without options) is working again. 2008-11-03 22:14:30 +00:00
metadata-exported.h Add vg_reduce to metadata.c and metadata-exported.h 2009-07-27 17:43:39 +00:00
metadata.c Add vg_reduce to metadata.c and metadata-exported.h 2009-07-27 17:43:39 +00:00
metadata.h Fix readahead calculation problems. 2009-06-01 12:43:31 +00:00
mirror.c Fix convert polling to ignore LV with different UUID. 2009-06-01 14:43:27 +00:00
pv_alloc.h Right, a simple build (without options) is working again. 2008-11-03 22:14:30 +00:00
pv_manip.c Right, a simple build (without options) is working again. 2008-11-03 22:14:30 +00:00
pv_map.c Do not include MISSING_PVs in allocation maps. 2009-04-23 16:41:27 +00:00
pv_map.h Right, a simple build (without options) is working again. 2008-11-03 22:14:30 +00:00
segtype.c Right, a simple build (without options) is working again. 2008-11-03 22:14:30 +00:00
segtype.h Permit several segment types to be registered by a single shared object. 2009-07-08 12:36:01 +00:00
snapshot_manip.c Use log_error macro consistently throughout in place of log_err. 2009-07-15 20:02:46 +00:00