From 64d45cdd85a313421a03e0b0cc4c1bb6c1b4f715 Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: May 12 2016 07:34:56 +0000 Subject: import lvm2-2.02.130-5.el7_2.2 --- diff --git a/SOURCES/lvm2-2_02_142-do-not-check-for-suspended-devices-if-scanning-for-lvmetad-update.patch b/SOURCES/lvm2-2_02_142-do-not-check-for-suspended-devices-if-scanning-for-lvmetad-update.patch new file mode 100644 index 0000000..6e6fb41 --- /dev/null +++ b/SOURCES/lvm2-2_02_142-do-not-check-for-suspended-devices-if-scanning-for-lvmetad-update.patch @@ -0,0 +1,37 @@ + WHATS_NEW | 4 ++++ + lib/filters/filter-usable.c | 9 +-------- + 2 files changed, 5 insertions(+), 8 deletions(-) + +diff --git a/WHATS_NEW b/WHATS_NEW +index 0fa6bb6..945b282 100644 +--- a/WHATS_NEW ++++ b/WHATS_NEW +@@ -1,3 +1,7 @@ ++Version 2.02.142 - ++==================================== ++ Do not check for suspended devices if scanning for lvmetad update. ++ + Version 2.02.133 - + ====================================== + Check for enough space in thin-pool in command before creating new thin. +diff --git a/lib/filters/filter-usable.c b/lib/filters/filter-usable.c +index 9377661..b24a30c 100644 +--- a/lib/filters/filter-usable.c ++++ b/lib/filters/filter-usable.c +@@ -126,15 +126,8 @@ static int _passes_usable_filter(struct dev_filter *f, struct device *dev) + break; + case FILTER_MODE_PRE_LVMETAD: + ucp.check_empty = 1; +- /* +- * If we're scanning for lvmetad update, +- * we don't want to hang on blocked/suspended devices. +- * When the device is unblocked/resumed, surely, +- * there's going to be a CHANGE event so the device +- * gets scanned via udev rule anyway after resume. +- */ + ucp.check_blocked = 1; +- ucp.check_suspended = 1; ++ ucp.check_suspended = 0; + ucp.check_error_target = 1; + ucp.check_reserved = 1; + break; diff --git a/SPECS/lvm2.spec b/SPECS/lvm2.spec index ecba3dc..ef6513b 100644 --- a/SPECS/lvm2.spec +++ b/SPECS/lvm2.spec @@ -52,7 +52,7 @@ Summary: Userland logical volume management tools Name: lvm2 Epoch: 7 Version: 2.02.130 -Release: 5%{?dist}.1 +Release: 5%{?dist}.2 License: GPLv2 Group: System Environment/Base URL: http://sources.redhat.com/lvm2 @@ -73,6 +73,7 @@ Patch12: lvm2-2_02_131-fix-vgimportclone-cache_dir-path-name.patch Patch13: lvm2-2_02_133-check-for-space-in-thin-pool-before-creating-new-thin.patch Patch14: lvm2-2_02_133-enforce-writethrough-mode-for-cleaner-policy.patch Patch15: lvm2-2_02_135-fix-resize-of-full-thin-pool-causing-data-loss.patch +Patch16: lvm2-2_02_142-do-not-check-for-suspended-devices-if-scanning-for-lvmetad-update.patch BuildRequires: libselinux-devel >= %{libselinux_version}, libsepol-devel BuildRequires: libblkid-devel >= %{util_linux_version} @@ -134,6 +135,7 @@ or more physical volumes and creating one or more logical volumes %patch13 -p1 -b .check_for_thin_pool_space %patch14 -p1 -b .writethrough_cleaner_policy %patch15 -p1 -b .thin_pool_resize_data_loss +%patch16 -p1 -b .susp_devs_lvmetad_update %build %define _default_pid_dir /run @@ -832,6 +834,9 @@ the device-mapper event library. %{_libdir}/pkgconfig/devmapper-event.pc %changelog +* Thu Mar 24 2016 Peter Rajnoha - 7:2.02.130-5.el7_2.2 +- Do not check for suspended devices if scanning for lvmetad update. + * Tue Dec 01 2015 Peter Rajnoha - 7:2.02.130-5.el7_2.1 - Fix possible data loss caused by lost buffered writes during thin pool resize after reaching its capacity.