1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-31 21:18:26 +03:00
lvm2/lib/activate
Zdenek Kabelac 18b82048e4 mlockall() -> mlock()
This patch adds a new implementation of locking function instead
of mlockall() that may lock way too much memory (>100MB).
New function instead uses mlock() system call and selectively locks
memory areas from /proc/self/maps trying to avoid locking areas
unused during lock-ed state.

Patch also adds struct cmd_context to all memlock() calls to have
access to configuration.

For backward compatibility functionality of mlockall()
is preserved with "activation/use_mlockall" flag.

As a simple check, locking and unlocking counts the amount of memory
and compares whether values are matching.
2010-03-05 14:48:33 +00:00
..
activate.c mlockall() -> mlock() 2010-03-05 14:48:33 +00:00
activate.h Remove lvs_in_vg_activated_by_uuid_only call. 2010-02-24 20:01:40 +00:00
dev_manager.c Always query device by uuid only. 2010-02-24 20:00:56 +00:00
dev_manager.h Always query device by uuid only. 2010-02-24 20:00:56 +00:00
fs.c Add support to disable udev checking: LVM_UDEV_DISABLE_CHECKING=1 env. var. 2010-01-11 15:40:03 +00:00
fs.h Add activation/udev_rules config option in lvm.conf. 2010-01-07 19:54:21 +00:00
targets.h Fix inconsistent licence notices: executables are GPLv2; libraries LGPLv2.1. 2007-08-20 20:55:30 +00:00