1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-22 17:35:59 +03:00
LVM2 mirror repository https://sourceware.org/lvm2/
Go to file
Peter Rajnoha 3a42c13ccf lvmcache: update cached info properly when moving from VG to orphan while lvmetad is used
When lvmetad is used and lvmcache update function (lvmcache_update_vgname_and_id)
was called to update existing lvmcache records, a condition was met
which made to retun from the update function immediately, effectively
making it NOOP.

It seems there's no reason for such condition and lvmcache should be
update appropriately even when lvmetad used as lvmcache may be reused,
most notably in lvm shell.

It's possible this is a remnant of the lvmetad development code which
didn't get removed for some reason and the bug didn't get spotted
because lvm shell is not used often (the condition dates back to 2012
or so).

Example, lvmetad and lvm shell used:

lvm> pvs
  PV         VG   Fmt  Attr PSize   PFree
  /dev/sda   vg   lvm2 a--  124.00m 124.00m

Before this patch:
==================
lvm> vgremove vg
  Volume group "vg" successfully removed

lvm> pvs

With this patch applied:
========================

lvm> vgremove vg
  Volume group "vg" successfully removed

lvm> pvs
  PV         VG   Fmt  Attr PSize   PFree
  /dev/sda        lvm2 ---  128.00m 128.00m
2015-10-23 15:58:31 +02:00
autoconf autoconf: Update config.guess/sub to 2014-01-01. 2014-01-21 22:00:15 +00:00
conf conf: clarify compact output settings 2015-10-20 11:01:09 +02:00
daemons cleanup: drop debug 2015-10-23 10:54:13 +02:00
doc doc: mention new invalid states in lvmetad_design 2015-06-23 16:48:28 -05:00
include configure: relocate configure.h 2015-09-11 21:46:35 +02:00
lib lvmcache: update cached info properly when moving from VG to orphan while lvmetad is used 2015-10-23 15:58:31 +02:00
libdaemon libdaemon: fix typo in last log enable commit 2015-10-21 11:22:22 -05:00
libdm cleanup: declare vars before code 2015-10-22 22:46:10 +02:00
liblvm segtypes: Use SEG_TYPE_NAME_ string constants. 2015-09-22 19:04:12 +01:00
man man: document possible lvmetad -l values 2015-10-21 13:36:57 -05:00
nix lockd: Clean up spec 2015-07-04 14:36:57 +02:00
old-tests report: select: refactor: move str_list to libdm 2014-06-17 16:27:20 +02:00
po makefiles: disable po file targes 2015-05-14 14:19:40 +02:00
python gitignore: Update for in-place build. 2015-07-27 13:18:35 +01:00
report-generators add copyright notices to new files 2010-07-28 12:20:38 +00:00
reports [REPORT-GENERATORS] cut down stylsheet.css to what we actually use 2010-07-21 10:00:38 +00:00
scripts makefiles: switch to rpath-link 2015-10-14 00:51:55 +02:00
spec spec: upgrade 2015-09-10 17:28:47 +02:00
test tests: enable raid test on 4.3 2015-10-22 22:46:10 +02:00
tools tools: update for lvm2_disable_dmeventd_monitoring 2015-10-23 10:54:13 +02:00
udev udev: fix missing escape for + 2015-08-12 19:46:44 +02:00
unit-tests cleanup: use DM_ARRAY_SIZE 2014-04-08 11:00:15 +02:00
.gitignore gitignore: Update for in-place build. 2015-07-27 13:18:35 +01:00
acinclude.m4 configure: detect st_ctim 2015-03-18 13:42:24 +01:00
aclocal.m4 configure: LOCALEDIR needs evaluated value 2015-05-18 13:06:34 +02:00
configure configure: relocate configure.h 2015-09-11 21:46:35 +02:00
configure.in configure: relocate configure.h 2015-09-11 21:46:35 +02: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 makefiles: generate Local 2015-10-13 16:02:20 +02:00
Makefile.in makefiles: src dirs have depth 5 2015-10-13 16:02:20 +02:00
README README: fix link to lvm-devel mailing list 2015-03-31 15:44:00 +02:00
VERSION post-release 2015-09-22 16:06:07 +01:00
VERSION_DM post-release 2015-09-22 16:06:07 +01:00
WHATS_NEW lvmcache: update cached info properly when moving from VG to orphan while lvmetad is used 2015-10-23 15:58:31 +02:00
WHATS_NEW_DM dmeventd: exit on idle 2015-10-22 22:43:03 +02: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.