1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-04 09:18:36 +03:00
LVM2 mirror repository https://sourceware.org/lvm2/
Go to file
Peter Rajnoha 2c12325d63 Do not reset position in metadata ring buffer on vgrename and vgcfgrestore.
We should write metadata into next position in the ring buffer while calling
vgrename and vgcfgrestore. At this code level (_vg_write_raw), we were not able
to determine if this is a rename or not. If yes, then accompanying VG structure
passed here has a new name set, not the old one.

When looking for a location where to put metadata next, we were given a NULL
value because of failed VG name comparison (in _find_vg_rlocn) between the
name in existing metadata and metadata we're just about to write.

This resets the position in the ring buffer, overwriting any existing metadata
(and also incorrectly updates the cache to "orphan" afterwards).

This patch just adds old_name item in struct volume_group that we can check and use
if necessary and detect renames at lower layers as well.

The same applies for vgcfgrestore, but here we're using a special value of
old_name, an empty string, to disable the check with existing metadata totally.
2010-04-14 13:09:16 +00:00
autoconf extended configure with --enable-profiling for compiling code with gcov info 2008-06-27 15:35:09 +00:00
daemons Use UUIDs instead of names while processing event handlers. 2010-04-14 13:01:38 +00:00
doc Add activation/polling_interval to lvm.conf as --interval default. 2010-04-13 01:43:56 +00:00
include Update cflow file generation - support build dir and use $(top_srcdir) 2010-03-29 14:11:17 +00:00
lib Do not reset position in metadata ring buffer on vgrename and vgcfgrestore. 2010-04-14 13:09:16 +00:00
libdm INSTALL rules updates 2010-04-09 21:42:48 +00:00
liblvm INSTALL rules updates 2010-04-09 21:42:48 +00:00
man Arguments to the --mirrorlog option are described in the synopsis as 2010-04-13 16:13:08 +00:00
old-tests Use $(top_builddir) for inclusion of make.tmpl in Makefiles. 2010-03-04 09:51:37 +00:00
po INSTALL rules updates 2010-04-09 21:42:48 +00:00
scripts INSTALL rules updates 2010-04-09 21:42:48 +00:00
test SIGTERM testing clvmd before SIGKILL-ing it. 2010-04-14 12:04:23 +00:00
tools Allow VGs with active LVs to be renamed. 2010-04-14 13:03:06 +00:00
udev Update install rules for udev. 2010-04-09 21:44:28 +00:00
configure INSTALL rules updates 2010-04-09 21:42:48 +00:00
configure.in INSTALL rules updates 2010-04-09 21:42:48 +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 INSTALL rules updates 2010-04-09 21:42:48 +00:00
Makefile.in Add check_cluster and check_local targets in addition to just "check". 2010-04-13 13:28:52 +00:00
README quick review of docs 2008-11-04 17:49:22 +00:00
VERSION post-release 2010-03-09 14:01:47 +00:00
VERSION_DM post-release 2010-03-09 14:01:47 +00:00
WHATS_NEW Do not reset position in metadata ring buffer on vgrename and vgcfgrestore. 2010-04-14 13:09:16 +00:00
WHATS_NEW_DM Fix incorrect removal of symlinks after LV deactivation fails. 2010-04-07 20:04:41 +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