[lvm2] Skip mlocking [vectors] on arm architecture.
Peter Rajnoha
prajnoha at fedoraproject.org
Thu Dec 6 10:37:22 UTC 2012
commit a0630d9725a2e7ef6f8c39f80198ae4410f6f1f2
Author: Peter Rajnoha <prajnoha at redhat.com>
Date: Thu Dec 6 11:37:13 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..3eeec36
--- /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 e247391..67a24c7 100644
+--- a/WHATS_NEW
++++ b/WHATS_NEW
+@@ -1,5 +1,6 @@
+ Version 2.02.99 -
+ ===================================
++ Skip mlocking [vectors] on arm architecture.
+ Exit pvscan --cache immediately if cluster locking used or lvmetad not used.
+ Don't use lvmetad in lvm2-monitor.service ExecStop to avoid a systemd issue.
+ Remove dependency on fedora-storage-init.service in lvm2 systemd units.
+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 3af0b1f..976f29b 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
@@ -53,6 +53,7 @@ Patch7: lvm2-2_02_99-hardcode-use_lvmetad0-if-cluster-locking-used-and-issue-war
Patch8: lvm2-2_02_99-init-lvmetad-lazily-to-avoid-early-socket-access-on-config-overrides.patch
Patch9: lvm2-2_02_99-various-updates-and-fixes-for-systemd-units.patch
Patch10: lvm2-2_02_99-exit-pvscan-cache-immediately-if-cluster-locking-used-or-lvmetad-not-used.patch
+Patch11: lvm2-2_02_99-skip-mlocking-verctors-on-arm-arch.patch
BuildRequires: libselinux-devel >= %{libselinux_version}, libsepol-devel
BuildRequires: ncurses-devel
@@ -98,6 +99,7 @@ or more physical volumes and creating one or more logical volumes
%patch8 -p1 -b .lvmetad_lazy_init
%patch9 -p1 -b .systemd_fixes
%patch10 -p1 -b .pvscan_immediate
+%patch11 -p1 -b .arm_vectors
%build
%define _default_pid_dir /run
@@ -594,6 +596,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.
+
* Sat Nov 17 2012 Peter Rajnoha <prajnoha at redhat.com> - 2.02.98-3
- Add lvm2-activation-generator systemd generator to automatically generate
systemd units to activate LVM2 volumes even if lvmetad is not used.
More information about the scm-commits
mailing list