aboutsummaryrefslogtreecommitdiffstats
path: root/main/lvm2/mlockall-default-config.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2015-11-25 17:13:11 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2015-11-25 17:16:17 +0000
commitbe05d69d9f75822e37f283ebb7a6823e2dc46d7f (patch)
tree31fb24f90ab59bd60df7196a28f5f24e29d7b098 /main/lvm2/mlockall-default-config.patch
parent4d3b50abf4bbf749a2ea697d69f9bbb1e322c899 (diff)
downloadaports-be05d69d9f75822e37f283ebb7a6823e2dc46d7f.tar.bz2
aports-be05d69d9f75822e37f283ebb7a6823e2dc46d7f.tar.xz
main/lvm2: set mlockall by default in the binary
set mlockall by default not only in the config but also in the binary so this is used from initramfs where there is no config.
Diffstat (limited to 'main/lvm2/mlockall-default-config.patch')
-rw-r--r--main/lvm2/mlockall-default-config.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/main/lvm2/mlockall-default-config.patch b/main/lvm2/mlockall-default-config.patch
index 1b7590d74b..1daadeff3d 100644
--- a/main/lvm2/mlockall-default-config.patch
+++ b/main/lvm2/mlockall-default-config.patch
@@ -9,3 +9,16 @@
# Configuration option activation/monitoring.
# Monitor LVs that are activated.
+diff --git a/lib/config/defaults.h b/lib/config/defaults.h
+index 8ab1fde..57b2443 100644
+--- a/lib/config/defaults.h
++++ b/lib/config/defaults.h
+@@ -53,7 +53,7 @@
+ #define DEFAULT_WAIT_FOR_LOCKS 1
+ #define DEFAULT_LVMLOCKD_LOCK_RETRIES 3
+ #define DEFAULT_PRIORITISE_WRITE_LOCKS 1
+-#define DEFAULT_USE_MLOCKALL 0
++#define DEFAULT_USE_MLOCKALL 1
+ #define DEFAULT_METADATA_READ_ONLY 0
+ #define DEFAULT_LVDISPLAY_SHOWS_FULL_DEVICE_PATH 0
+