1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00
lvm2/libdm
Zdenek Kabelac ed463ccf51 Add memory pool locking functions
Adding debuging functionality to lock and unlock memory pool.

2 ways to debug code:
crc - is default checksum/hash of the locked pool.
      It gets slower when the pool is larger - so the check is only
      made when VG is finaly released and it has been used more then
      once.Thus the result is rather informative.

mprotect - quite fast all the time - but requires more memory and
           currently it is using posix_memalign() - this could be
	   later modified to use dm_malloc() and align internally.
           Tool segfaults when locked memory is modified and core
	   could be examined for faulty code section (backtrace).

Only fast memory pools could use mprotect for now -
so such debug builds cannot be combined with DEBUG_POOL.
2011-08-11 17:29:04 +00:00
..
datastruct Use void pointer instead of char for binary key 2011-03-10 12:48:40 +00:00
ioctl Remove support for the original dm ioctl interface version 1. 2011-08-09 17:56:47 +00:00
misc Suport DM_SECURE_DATA_FLAG. 2011-02-04 16:08:11 +00:00
mm Add memory pool locking functions 2011-08-11 17:29:04 +00:00
regex Fix some unmatching sign comparation gcc warnings 2011-04-08 14:40:18 +00:00
.exported_symbols Generate liblvm2app and libdevmapper exported symbols from header files. 2010-06-25 18:17:38 +00:00
libdevmapper.h Add memory pool locking functions 2011-08-11 17:29:04 +00:00
libdevmapper.pc.in Switch to use Requires.private for devmapper.pc and lvm2app.pc 2010-05-11 08:54:11 +00:00
libdm-common.c Log cookie values when incrementing/decrementing to give clues about races. 2011-07-08 15:34:47 +00:00
libdm-common.h Move udev_only logic inside stacked node op code. 2011-06-27 21:43:58 +00:00
libdm-deptree.c Add basic RAID segment type(s) support. 2011-08-02 22:07:20 +00:00
libdm-file.c Add missing check for allocation failure 2011-08-04 17:56:11 +00:00
libdm-report.c Remove meaningless const type qualifiers on cast type 2011-08-04 14:30:51 +00:00
libdm-string.c Move va_end(ap) so we do not leave with return -1 without calling it. 2010-11-23 15:00:52 +00:00
Makefile.in Clean generated files .exported_symbols_generated, example.conf for distclean. 2010-08-03 13:00:45 +00:00