1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-04 09:18:36 +03:00
lvm2/lib/format_text
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
..
archive.c Rename vg_size to vgsize to avoid naming conflicts. 2009-07-26 12:40:27 +00:00
archiver.c Use log_error macro consistently throughout in place of log_err. 2009-07-15 20:02:46 +00:00
archiver.h Fix remote metadata backup for clvmd 2009-04-22 09:39:45 +00:00
export.c Use PV UUID in hash for device name when exporting metadata. 2009-05-19 09:48:32 +00:00
flags.c Use log_error macro consistently throughout in place of log_err. 2009-07-15 20:02:46 +00:00
format-text.c Use log_error macro consistently throughout in place of log_err. 2009-07-15 20:02:46 +00:00
format-text.h Right, a simple build (without options) is working again. 2008-11-03 22:14:30 +00:00
import_vsn1.c Add vg_reduce to metadata.c and metadata-exported.h 2009-07-27 17:43:39 +00:00
import-export.h Right, a simple build (without options) is working again. 2008-11-03 22:14:30 +00:00
import.c Cache VG metadata internally while VG lock is held. 2008-04-01 22:40:13 +00:00
layout.h Right, a simple build (without options) is working again. 2008-11-03 22:14:30 +00:00
tags.c Right, a simple build (without options) is working again. 2008-11-03 22:14:30 +00:00
text_export.h Use return_0 in a couple more places. 2008-03-10 18:51:27 +00:00
text_import.h Fix inconsistent licence notices: executables are GPLv2; libraries LGPLv2.1. 2007-08-20 20:55:30 +00:00
text_label.c Use log_error macro consistently throughout in place of log_err. 2009-07-15 20:02:46 +00:00