1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-11 09:18:25 +03:00
lvm2/lib
Milan Broz 06bdf8b461 Introduce memory pool per volume group.
Since now, all code reading volume group is responsible for releasing
the memory allocated by calling vg_release(vg).
(For simplicity of use, vg_releae can be called for vg == NULL,
the same logic like free(NULL)).

Also providing simple macro for unlocking & releasing in one step,
tools usualy uses this approach.

The global memory pool (cmd->mem) should be used only for global
physical volume operations.

This patch have to be applied with all subsequent patches to complete
memory pool per vg logic.

Using separate memory pool has quite bit memory saving impact when
using large VGs, this is mainly needed when we have to use
preallocated and locked memory (and should not overflow from that
memory space).
2009-04-10 09:59:18 +00:00
..
activate Fix last check-ins: seg can be NULL. 2009-02-28 20:04:24 +00:00
cache Index cached vgmetadata by vgid not vgname to cope with duplicate vgnames. (dwyso) 2009-02-17 18:56:41 +00:00
commands Fix error message when archive initialization fails. 2009-04-02 20:46:11 +00:00
config fix some issues when compiling with -D DEBUG_POOL 2009-03-26 09:25:18 +00:00
datastruct more missing bits 2008-11-04 14:57:06 +00:00
device Missed file from previous checkin. 2009-03-17 14:40:00 +00:00
display Added displayable_lvs_in_vg and lv_is_displayable functions to deal with 2008-12-04 15:54:26 +00:00
error Fix last check-ins: seg can be NULL. 2009-02-28 20:04:24 +00:00
filters Right, a simple build (without options) is working again. 2008-11-03 22:14:30 +00:00
format1 Introduce memory pool per volume group. 2009-04-10 09:59:18 +00:00
format_pool Introduce memory pool per volume group. 2009-04-10 09:59:18 +00:00
format_text Introduce memory pool per volume group. 2009-04-10 09:59:18 +00:00
freeseg Fix reporting of LV fields alongside unallocated PV segments. 2008-06-25 16:52:27 +00:00
label Provide da and mda locations in debug message when writing text format label. 2009-02-20 23:19:28 +00:00
locking Introduce memory pool per volume group. 2009-04-10 09:59:18 +00:00
log more tweaking to get things to compile - dmlib.h for log fns, list.h 2008-11-03 18:59:59 +00:00
metadata Introduce memory pool per volume group. 2009-04-10 09:59:18 +00:00
mirror Fix last check-ins: seg can be NULL. 2009-02-28 20:04:24 +00:00
misc Attempt cleanup in child before execing new binary in exec_cmd() 2009-02-28 00:54:06 +00:00
mm fix setpriority int error 2008-05-28 23:12:45 +00:00
report pe_start can be overwritten in VG metadata, so it is not PV label-only field. 2009-02-25 23:31:06 +00:00
snapshot Save and restore the previous logging level when log level is changed. 2009-04-02 21:34:41 +00:00
striped Fix last check-ins: seg can be NULL. 2009-02-28 20:04:24 +00:00
uuid Add generic function to read /dev/urandom, used in uuid calculation. 2008-12-07 04:23:37 +00:00
zero Fix last check-ins: seg can be NULL. 2009-02-28 20:04:24 +00:00
Makefile.in Detect and wipe swap signatures in pvcreate. 2009-03-17 13:59:56 +00:00