1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00
LVM2 mirror repository https://sourceware.org/lvm2/
Go to file
Peter Rajnoha 3c978f7bcc pvcreate: fix check for 2nd mda at end of disk fits if using pvcreate --restorefile
Fix code checking that the 2nd mda which is at the end of disk really
fits the available free space and avoid any DA and MDA interleaving when
we already have DA preallocated. This mainly applies when we're restoring
a PV from VG backup using pvcreate --restorefile where we may already have
some DA preallocated - this means the PV was in a VG before with already
allocated space from it (the LVs were created). Hence we need to avoid
stepping into DA - the MDA can never ever be inside in such case!

The code responsible for this calculation was already in
_text_pv_add_metadata_area fn, but it had a bug in the calculation where
we subtracted one more sector by mistake and then the code could still
incorrectly allocate the MDA inside existing DA. The patch also renames
the variable in the code so it doesn't confuse us in future.

Also, if the 2nd mda doesn't fit, don't silently continue with just 1
MDA (at the start of the disk). If 2nd mda was requested and we can't
create that due to unavailable space, error out correctly (the patch
also adds a test to shell/pvcreate-operation.sh for this case).
2017-08-15 13:40:25 +02:00
autoconf autoconf: Fix py-compile permissions 2016-02-18 01:05:05 +00:00
conf lvmconfig: Add options to produce file preamble 2017-08-05 16:23:34 +01:00
coverity coverity: model few more functions 2017-06-27 12:17:16 +02:00
daemons lvmlockd: global name doesn't apply to sanlock 2017-08-07 10:46:03 -05:00
doc docs: Refresh kernel target docs 2017-07-12 18:59:52 +01:00
include fsadm: support configurable full path 2017-04-12 21:34:08 +02:00
lib pvcreate: fix check for 2nd mda at end of disk fits if using pvcreate --restorefile 2017-08-15 13:40:25 +02:00
libdaemon lvmetad: Suppress accept error on clean shutdown 2017-07-06 14:53:10 +01:00
libdm ioctl: Allow minor without major. 2017-08-04 14:45:20 +01:00
liblvm makefiles: fixing linking 2017-08-01 11:53:30 +02:00
man lvmconfig: Add options to produce file preamble 2017-08-05 16:23:34 +01: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 python: move lvm_init 2016-05-16 14:36:55 -05: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 makefiles: script executable missed dynamic 2017-08-01 18:32:16 +02:00
spec spec: Enable notify-dbus in builds with dbus 2017-05-26 07:40:09 +02:00
test pvcreate: fix check for 2nd mda at end of disk fits if using pvcreate --restorefile 2017-08-15 13:40:25 +02:00
tools pvcreate: Use maximum metadata area size with --restorefile 2017-08-11 20:41:37 +01:00
udev udev: also create /dev/disk/by-part{label,uuid} and gpt-auto-root symlinks 2017-07-10 12:36:39 +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: just move new macro to right file 2016-12-13 22:49:59 +01:00
aclocal.m4 configure: just move new macro to right file 2016-12-13 22:49:59 +01:00
configure configure: tune BUILD_DMEVENTD 2017-08-01 18:17:06 +02:00
configure.in configure: tune BUILD_DMEVENTD 2017-08-01 18:17:06 +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 makefiles: add DEFS_$@ for cxx 2017-08-01 18:33:50 +02:00
Makefile.in man: Revise internal man page generation process. 2017-03-14 00:47:46 +00:00
README git: Upstream repository moved to sourceware.org 2017-02-27 14:05:50 +00:00
VERSION post-release 2017-07-20 17:19:09 +01:00
VERSION_DM post-release 2017-07-20 17:19:09 +01:00
WHATS_NEW pvcreate: fix check for 2nd mda at end of disk fits if using pvcreate --restorefile 2017-08-15 13:40:25 +02:00
WHATS_NEW_DM dmsetup: Add --concise to dmsetup create. 2017-08-04 19:38:34 +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://sourceware.org/pub/lvm2/
  ftp://sources.redhat.com/pub/lvm2/

The source code is stored in git:
  https://sourceware.org/git/?p=lvm2.git
  git clone git://sourceware.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.