From 55f066e8130643a65a5ae23ce566244ee547b603ff4315471e11630198baacb1 Mon Sep 17 00:00:00 2001 From: LiuhuaMelody Wang Date: Tue, 25 Aug 2015 05:57:49 +0000 Subject: [PATCH] Accepting request 326520 from home:wanglh:branches:Base:System fix boot failure (bnc#942755) and patch renumber OBS-URL: https://build.opensuse.org/request/show/326520 OBS-URL: https://build.opensuse.org/package/show/Base:System/lvm2?expand=0&rev=140 --- lvm2.changes | 6 ++++ lvm2.spec | 2 ++ ...-lvmetad-global-handle-on-disconnect.patch | 29 +++++++++++++++++++ 3 files changed, 37 insertions(+) create mode 100644 lvmetad.c-ignore-lvmetad-global-handle-on-disconnect.patch diff --git a/lvm2.changes b/lvm2.changes index 8372924..21ac74a 100644 --- a/lvm2.changes +++ b/lvm2.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Aug 25 02:27:10 UTC 2015 - lwang@suse.com + +- Fix boot failed due to segfault at libc (bnc#942755) + add: lvmetad.c-ignore-lvmetad-global-handle-on-disconnect.patch + ------------------------------------------------------------------- Thu Aug 6 06:13:20 UTC 2015 - lwang@suse.com diff --git a/lvm2.spec b/lvm2.spec index ba45b4a..0734071 100644 --- a/lvm2.spec +++ b/lvm2.spec @@ -40,6 +40,7 @@ Source16: csm-converter.tar.gz Source50: thin-provisioning-tools-v%{thin_provisioning_version}.tar.gz # Upstream patches first +Patch1: lvmetad.c-ignore-lvmetad-global-handle-on-disconnect.patch # SUSE patches 1000- for LVM, 2000- for device mapper Patch1001: improve_probing.diff @@ -126,6 +127,7 @@ Volume Manager. %prep %setup -q -n LVM2.%{version} -a 50 -a 16 +%patch1 -p1 %patch1001 -p1 %patch1002 -p1 %patch1003 -p1 diff --git a/lvmetad.c-ignore-lvmetad-global-handle-on-disconnect.patch b/lvmetad.c-ignore-lvmetad-global-handle-on-disconnect.patch new file mode 100644 index 0000000..4753657 --- /dev/null +++ b/lvmetad.c-ignore-lvmetad-global-handle-on-disconnect.patch @@ -0,0 +1,29 @@ +From f8bf6410954fcf82bf28852e0dba015c6b7f19dc Mon Sep 17 00:00:00 2001 +From: Ondrej Kozina +Date: Fri, 22 May 2015 14:48:28 +0200 +Subject: [PATCH] lvmetad.c: ignore lvmetad global handle on disconnect + +do not unset lvmetad global handle on disconnect. This is +hotfix for issue described in: +https://www.redhat.com/archives/linux-lvm/2015-May/msg00008.html + +Reported-by: Christian Hesse +--- + lib/cache/lvmetad.c | 1 - + 1 file changed, 1 deletion(-) + +diff --git a/lib/cache/lvmetad.c b/lib/cache/lvmetad.c +index 68162b6..73a382c 100644 +--- a/lib/cache/lvmetad.c ++++ b/lib/cache/lvmetad.c +@@ -39,7 +39,6 @@ void lvmetad_disconnect(void) + if (_lvmetad_connected) + daemon_close(_lvmetad); + _lvmetad_connected = 0; +- _lvmetad_cmd = NULL; + } + + void lvmetad_init(struct cmd_context *cmd) +-- +1.8.4.5 +