mlockall-default-config.patch 811 B

12345678910111213141516171819202122232425
  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. diff --git a/lib/config/defaults.h b/lib/config/defaults.h
  12. index 8ab1fde..57b2443 100644
  13. --- a/lib/config/defaults.h
  14. +++ b/lib/config/defaults.h
  15. @@ -53,7 +53,7 @@
  16. #define DEFAULT_WAIT_FOR_LOCKS 1
  17. #define DEFAULT_LVMLOCKD_LOCK_RETRIES 3
  18. #define DEFAULT_PRIORITISE_WRITE_LOCKS 1
  19. -#define DEFAULT_USE_MLOCKALL 0
  20. +#define DEFAULT_USE_MLOCKALL 1
  21. #define DEFAULT_METADATA_READ_ONLY 0
  22. #define DEFAULT_LVDISPLAY_SHOWS_FULL_DEVICE_PATH 0