1 --- ./conf/example.conf.in.orig
2 +++ ./conf/example.conf.in
4 # Use the old behavior of mlockall to pin all memory.
5 # Prior to version 2.02.62, LVM used mlockall() to pin the whole
6 # process's memory while activating devices.
10 # Configuration option activation/monitoring.
11 # Monitor LVs that are activated.
12 --- ./lib/config/defaults.h.orig
13 +++ ./lib/config/defaults.h
15 #define DEFAULT_LVMLOCKD_LOCK_RETRIES 3
16 #define DEFAULT_LVMETAD_UPDATE_WAIT_TIME 10
17 #define DEFAULT_PRIORITISE_WRITE_LOCKS 1
18 -#define DEFAULT_USE_MLOCKALL 0
19 +#define DEFAULT_USE_MLOCKALL 1
20 #define DEFAULT_METADATA_READ_ONLY 0
21 #define DEFAULT_LVDISPLAY_SHOWS_FULL_DEVICE_PATH 0
22 #define DEFAULT_UNKNOWN_DEVICE_NAME "[unknown]"