1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-10-27 18:55:19 +03:00
LVM2 mirror repository https://sourceware.org/lvm2/
Go to file
David Teigland d3d13e134a lvmcache: process duplicate PVs directly
Previously, duplicate PVs were processed as a side effect
of processing the "chosen" PV in lvmcache.  The duplicate
PV would be hacked into lvmcache temporarily in place of
the chosen PV.

In the old way, we had to always process the "chosen" PV
device, even if a duplicate of it was named on the command
line.  This meant we were processing a different device than
was asked for.  This could be worked around by naming
multiple duplicate devs on the command line in which case
they were swapped in and out of lvmcache for processing.

Now, the duplicate devs are processed directly in their
own processing loop.  This means we can remove the old
hacks related to processing dups as a side effect of
processing the chosen device.  We can now simply process
the device that was named on the command line.

When the same PVID exists on two or more devices, one device
is preferred and used in the VG, and the others are duplicates
and are not used in the VG.  The preferred device exists in
lvmcache as usual.  The duplicates exist in a specical list
of unused duplicate devices.

The duplicate devs have the "d" attribute and the "duplicate"
reporting field displays "duplicate" for them.

'pvs' warns about duplicates, but the formal output only
includes the single preferred PV.

'pvs -a' has the same warnings, and the duplicate devs are
included in the output.

'pvs <path>' has the same warnings, and displays the named
device, whether it is preferred or a duplicate.
2016-05-06 09:00:00 -05:00
autoconf autoconf: Fix py-compile permissions 2016-02-18 01:05:05 +00:00
conf pre-release 2016-04-23 00:41:55 +01:00
coverity doc: change fsf address 2016-01-21 12:11:37 +01:00
daemons lvmetad: set disabled flag when duplicate PVs are seen 2016-05-06 08:59:59 -05:00
doc doc: change fsf address 2016-01-21 12:11:37 +01:00
include pre-release 2016-03-11 00:19:16 +00:00
lib lvmcache: process duplicate PVs directly 2016-05-06 09:00:00 -05:00
libdaemon cleanup: add backtrace 2016-03-10 18:38:54 +01:00
libdm libdm: Add dm_udev_wait_immediate. 2016-04-28 00:54:27 +01:00
liblvm metadata: also look at historical LVs when checking LV name availability 2016-03-03 13:50:59 +01:00
man cleanup: use unsigned with EPOCH printf format 2016-05-05 23:55:20 +02:00
nix lockd: Clean up spec 2015-07-04 14:36:57 +02:00
old-tests doc: change fsf address 2016-01-21 12:11:37 +01:00
po doc: change fsf address 2016-01-21 12:11:37 +01:00
python lvmdbus: Add new daemon. 2016-02-17 23:53:35 +00:00
report-generators doc: change fsf address 2016-01-21 12:11:37 +01:00
reports [REPORT-GENERATORS] cut down stylsheet.css to what we actually use 2010-07-21 10:00:38 +00:00
scripts lvmdump: If dir exists check dir perms too. 2016-04-06 22:56:45 +01:00
spec spec: Fix gobject dependency 2016-03-09 14:00:05 +01:00
test tests: do not use EPOCH for get wrapper 2016-05-05 23:55:20 +02:00
tools lvmcache: process duplicate PVs directly 2016-05-06 09:00:00 -05:00
udev udev: rules: add comments explaining subsystem-specific rules 2016-04-26 12:57:37 +02:00
unit-tests doc: change fsf address 2016-01-21 12:11:37 +01:00
.gitignore lvmdbus: Add new daemon. 2016-02-17 23:53:35 +00:00
acinclude.m4 configure: detect st_ctim 2015-03-18 13:42:24 +01:00
aclocal.m4 lvmdbus: Add new daemon. 2016-02-17 23:53:35 +00:00
configure configure: respect --disable-lvmetad/lvmpolld 2016-04-21 00:34:01 +02:00
configure.in configure: respect --disable-lvmetad/lvmpolld 2016-04-21 00:34:01 +02:00
COPYING doc: change fsf address 2016-01-21 12:11:37 +01: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 lvmdbus: Add new daemon. 2016-02-17 23:53:35 +00:00
Makefile.in makefiles: add more dirs for lcov output 2016-02-26 10:21:34 +01:00
README README: fix link to lvm-devel mailing list 2015-03-31 15:44:00 +02:00
VERSION post-release 2016-04-30 01:12:33 +01:00
VERSION_DM post-release 2016-04-30 01:12:33 +01:00
WHATS_NEW lvcreate: improve --chunksize support for cached volume. 2016-05-05 23:50:10 +02:00
WHATS_NEW_DM post-release 2016-04-30 01:12:33 +01: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/

The source code is stored in git:
  http://git.fedorahosted.org/git/lvm2.git
  git clone git://git.fedorahosted.org/git/lvm2.git

Mailing list for general discussion related to LVM2:
  linux-lvm@redhat.com
  Subscribe from https://www.redhat.com/mailman/listinfo/linux-lvm

Mailing lists for LVM2 development, patches and commits:
  lvm-devel@redhat.com
  Subscribe from https://www.redhat.com/mailman/listinfo/lvm-devel

  lvm2-commits@lists.fedorahosted.org (Read-only archive of commits)
  Subscribe from https://fedorahosted.org/mailman/listinfo/lvm2-commits

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

The source code repository used until 7th June 2012 is accessible here:
  http://sources.redhat.com/cgi-bin/cvsweb.cgi/LVM2/?cvsroot=lvm2.