mlockall-default-config.patch 785 B

1234567891011121314151617181920212223
  1. --- ./conf/example.conf.in.orig
  2. +++ ./conf/example.conf.in
  3. @@ -1352,7 +1352,7 @@
  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.
  7. - use_mlockall = 0
  8. + use_mlockall = 1
  9. # Configuration option activation/monitoring.
  10. # Monitor LVs that are activated.
  11. --- ./lib/config/defaults.h.orig
  12. +++ ./lib/config/defaults.h
  13. @@ -55,7 +55,7 @@
  14. #define DEFAULT_LVMLOCKD_LOCK_RETRIES 3
  15. #define DEFAULT_LVMETAD_UPDATE_WAIT_TIME 10
  16. #define DEFAULT_PRIORITISE_WRITE_LOCKS 1
  17. -#define DEFAULT_USE_MLOCKALL 0
  18. +#define DEFAULT_USE_MLOCKALL 1
  19. #define DEFAULT_METADATA_READ_ONLY 0
  20. #define DEFAULT_LVDISPLAY_SHOWS_FULL_DEVICE_PATH 0
  21. #define DEFAULT_UNKNOWN_DEVICE_NAME "[unknown]"