1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-22 17:35:59 +03:00
lvm2/lib
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
..
activate Fix backward compatibility for major:minor query. 2009-06-17 20:55:24 +00:00
cache Update error return and comments for lvm_list_vg_names/uuids. 2009-07-27 11:00:17 +00:00
commands Pass struct cmd_context as a first argument to init_multiple_segtypes. 2009-07-21 20:00:02 +00:00
config Add global/wait_for_locks to lvm.conf so blocking on locks can be disabled. 2009-07-24 23:28:55 +00:00
datastruct Update error return and comments for lvm_list_vg_names/uuids. 2009-07-27 11:00:17 +00:00
device Cast MINOR() in _md_sysfs_attribute_snprintf()'s dm_snprintf() call. 2009-07-20 18:44:13 +00:00
display Update display.c to use vg_free(vg) instead of duplicating the calculation. 2009-07-27 10:18:31 +00:00
error Fix last check-ins: seg can be NULL. 2009-02-28 20:04:24 +00:00
filters Add extended device (blkext) and MD partition (mdp) types to filters. 2009-07-09 22:34:02 +00:00
format1 Add vg_reduce to metadata.c and metadata-exported.h 2009-07-27 17:43:39 +00:00
format_pool Add vg_reduce to metadata.c and metadata-exported.h 2009-07-27 17:43:39 +00:00
format_text Add vg_reduce to metadata.c and metadata-exported.h 2009-07-27 17:43:39 +00:00
freeseg Fix reporting of LV fields alongside unallocated PV segments. 2008-06-25 16:52:27 +00:00
label Use log_error macro consistently throughout in place of log_err. 2009-07-15 20:02:46 +00:00
locking Add global/wait_for_locks to lvm.conf so blocking on locks can be disabled. 2009-07-24 23:28:55 +00:00
log Fix so only log_error and log_fatal set EUNCLASSIFIED. 2009-07-16 13:13:33 +00:00
metadata Add vg_reduce to metadata.c and metadata-exported.h 2009-07-27 17:43:39 +00:00
mirror Fix confusing metadata syntax error messages. 2009-07-09 11:29:00 +00:00
misc Add an API version number, LVM_LIBAPI, to the VERSION string. 2009-07-22 20:01:28 +00:00
mm fix setpriority int error 2008-05-28 23:12:45 +00:00
report Refactor a few report field calculations into separate functions. 2009-07-26 12:41:09 +00:00
snapshot Fix snapshot segment import to not use duplicate segments & replace. 2009-05-13 21:21:58 +00:00
striped Fix confusing metadata syntax error messages. 2009-07-09 11:29:00 +00:00
uuid Use log_error macro consistently throughout in place of log_err. 2009-07-15 20:02:46 +00:00
zero Attempt to load dm-zero module if zero target needed but not present. (mbroz) 2009-05-27 13:05:53 +00:00
Makefile.in Build shared parts with 'make' command (mpatocka) 2009-06-03 11:31:06 +00:00