mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
LVM2 mirror repository
https://sourceware.org/lvm2/
e2ecc6c763
If we are executing 'report_for_selection' to do an internal report just for the selection itself (not for display), we can call it more than once. In that case, we are reusing the same selection handle (e.g. inside 'process_each_lv_in_vg'). The selection handle has 'report_type' field which is a union of all report types needed for the report based on selection fields we actually use. The 'report_type' is further clarified based on checks and rules inside '_get_final_report_type' which 'report_for_selection' calls. Then, this final report type unambiguously identifies proper branch to take in 'report_all_in_{pv,vg,lv}' that is called next. If the 'report_for_selection' is called more than once with the same selection handle, we need to make sure that we always restore the report type to its initial value, so all the rules inside 'report_for_selection' are applied correctly next time. This patch fixes the missing restoration of the 'report_type' value in 'selection_handle' that is reused for recurring 'report_for_selection' calls. An example scenario where this failed was with selecting an LV for removal with "lvremove --select" while using a field in the selection that required extra DM info or DM status call for the LV (that is, "Logical Volume Device Info Fields" and "Logical Volume Device Status Fields" as visible in 'lvs -S help'). |
||
---|---|---|
autoconf | ||
base | ||
conf | ||
coverity | ||
daemons | ||
device_mapper | ||
doc | ||
include | ||
lib | ||
libdaemon | ||
libdm | ||
man | ||
nix | ||
po | ||
scripts | ||
spec | ||
test | ||
tools | ||
udev | ||
.gitignore | ||
acinclude.m4 | ||
aclocal.m4 | ||
configure | ||
configure.ac | ||
COPYING | ||
COPYING.BSD | ||
COPYING.LIB | ||
INSTALL | ||
make.tmpl.in | ||
Makefile.in | ||
README | ||
TESTING | ||
VERSION | ||
VERSION_DM | ||
WHATS_NEW | ||
WHATS_NEW_DM |
This tree contains the LVM2 and device-mapper tools and libraries. This is development branch, for stable 2.02 release see stable-2.02 branch. 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/ https://github.com/lvmteam/lvm2/releases The source code is stored in git: https://sourceware.org/git/?p=lvm2.git git clone git://sourceware.org/git/lvm2.git mirrored to: https://github.com/lvmteam/lvm2 git clone https://github.com/lvmteam/lvm2.git git clone git@github.com:lvmteam/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 Website: https://sourceware.org/lvm2/ Report upstream bugs at: https://bugzilla.redhat.com/enter_bug.cgi?product=LVM%20and%20device-mapper or open issues at: https://github.com/lvmteam/lvm2/issues The source code repository used until 7th June 2012 is accessible using CVS: cvs -d :pserver:cvs@sourceware.org:/cvs/lvm2 login cvs cvs -d :pserver:cvs@sourceware.org:/cvs/lvm2 checkout LVM2 The password is cvs.