[lvm2/f18] Skip mlocking [vectors] on arm architecture.

Peter Rajnoha prajnoha at fedoraproject.org
Thu Dec 6 10:30:54 UTC 2012


commit 0d6911773b4a0e9db147fe52276269654aa3b0a9
Author: Peter Rajnoha <prajnoha at redhat.com>
Date:   Thu Dec 6 11:30:44 2012 +0100

    Skip mlocking [vectors] on arm architecture.

 ..._02_99-skip-mlocking-verctors-on-arm-arch.patch |   27 ++++++++++++++++++++
 lvm2.spec                                          |    7 ++++-
 2 files changed, 33 insertions(+), 1 deletions(-)
---
diff --git a/lvm2-2_02_99-skip-mlocking-verctors-on-arm-arch.patch b/lvm2-2_02_99-skip-mlocking-verctors-on-arm-arch.patch
new file mode 100644
index 0000000..7762296
--- /dev/null
+++ b/lvm2-2_02_99-skip-mlocking-verctors-on-arm-arch.patch
@@ -0,0 +1,27 @@
+ WHATS_NEW        | 1 +
+ lib/mm/memlock.c | 1 +
+ 2 files changed, 2 insertions(+)
+
+diff --git a/WHATS_NEW b/WHATS_NEW
+index 7322e1c..b171c2b 100644
+--- a/WHATS_NEW
++++ b/WHATS_NEW
+@@ -1,5 +1,6 @@
+ Version 2.02.99 - 
+ ===================================
++  Skip mlocking [vectors] on arm architecture.
+   Don't use lvmetad in lvm2-monitor.service ExecStop to avoid a systemd issue.
+   Depend on lvm2-lvmetad.socket in lvm2-monitor.service systemd unit.
+   Initialize lvmetad lazily to avoid early socket access on config overrides.
+diff --git a/lib/mm/memlock.c b/lib/mm/memlock.c
+index 2240a1d..6d0996a 100644
+--- a/lib/mm/memlock.c
++++ b/lib/mm/memlock.c
+@@ -84,6 +84,7 @@ static int _default_priority;
+ static const char * const _ignore_maps[] = {
+     "[vdso]",
+     "[vsyscall]",
++    "[vectors]",
+ };
+ 
+ /* default blacklist for maps */
diff --git a/lvm2.spec b/lvm2.spec
index 8053f91..66986ca 100644
--- a/lvm2.spec
+++ b/lvm2.spec
@@ -37,7 +37,7 @@
 Summary: Userland logical volume management tools 
 Name: lvm2
 Version: 2.02.98
-Release: 3%{?dist}
+Release: 4%{?dist}
 License: GPLv2
 Group: System Environment/Base
 URL: http://sources.redhat.com/lvm2
@@ -47,6 +47,7 @@ Patch1: lvm2-2_02_99-properly-set-cookie_set-var-on-dm_task_set_cookie-call.patc
 Patch2: lvm2-2_02_99-hardcode-use_lvmetad0-if-cluster-locking-used-and-issue-warning-msg.patch
 Patch3: lvm2-2_02_99-init-lvmetad-lazily-to-avoid-early-socket-access-on-config-overrides.patch
 Patch4: lvm2-2_02_99-various-updates-and-fixes-for-systemd-units.patch
+Patch5: lvm2-2_02_99-skip-mlocking-verctors-on-arm-arch.patch
 
 BuildRequires: libselinux-devel >= %{libselinux_version}, libsepol-devel
 BuildRequires: ncurses-devel
@@ -84,6 +85,7 @@ or more physical volumes and creating one or more logical volumes
 %patch2 -p1 -b .cluster_lvmetad
 %patch3 -p1 -b .lvmetad_lazy_init
 %patch4 -p1 -b .systemd_fixes
+%patch5 -p1 -b .arm_vectors
 
 %build
 %define _default_pid_dir /run
@@ -563,6 +565,9 @@ the device-mapper event library.
 %{_libdir}/pkgconfig/devmapper-event.pc
 
 %changelog
+* Thu Dec 06 2012 Peter Rajnoha <prajnoha at redhat.com> - 2.02.98-4
+- Skip mlocking [vectors] on arm architecture.
+
 * Thu Nov 22 2012 Peter Rajnoha <prajnoha at redhat.com> - 2.02.98-3
 - Do not use lvmetad by default if lvm.conf missing or use_lvmetad not defined.
 


More information about the scm-commits mailing list