1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-22 17:35:59 +03:00
lvm2/lib/metadata
Peter Rajnoha a1bec4e685 Add mem and ref_count fields to struct format_instance for own mempool use.
Format instances can be created anytime on demand and it contains
metadata area information mostly (at least for now, but in the future,
we may store more things here to update/edit in a PV/VG). In case we
have lots of metadata areas, memory consumption will rise. Using cmd
context mempool is not quite optimal here because it is destroyed too
late. So let's use a separate mempool for format instances.

Reference counting is used because fids could be shared, e.g. each PV
has either a PV-based fid or VG-based fid. If it's VG-based, each PV has
a shared fid with the VG - a reference to VG's fid.
2011-03-11 14:38:38 +00:00
..
lv_alloc.h Fix pvmove allocation to take existing parallel stripes into account. 2010-04-08 00:28:57 +00:00
lv_manip.c Add fall through comments 2011-02-28 19:53:03 +00:00
lv.c Use empty string instead of /dev// for LV path when there's no VG. 2011-03-09 12:44:42 +00:00
lv.h Fix reading of released memory 2011-03-05 12:14:00 +00:00
merge.c Replicator: check replicator segment 2010-05-21 12:43:02 +00:00
metadata-exported.h Add mem and ref_count fields to struct format_instance for own mempool use. 2011-03-11 14:38:38 +00:00
metadata.c Add mem and ref_count fields to struct format_instance for own mempool use. 2011-03-11 14:38:38 +00:00
metadata.h Use new alloc_fid fn for common format instance initialisation. 2011-03-11 14:30:27 +00:00
mirror.c Const fixing 2011-02-18 14:47:28 +00:00
pv_alloc.h Fix all segments memory is allocated from vg private mempool. 2010-03-31 17:23:18 +00:00
pv_manip.c %ld -> PRIu64 2011-02-21 13:09:27 +00:00
pv_map.c Allow ALLOC_ANYWHERE to split contiguous areas. 2010-03-25 21:19:26 +00:00
pv_map.h Remove superfluous fn prototypes. 2010-07-09 15:21:10 +00:00
pv.c Fix metadata balance code to work with recent changes in metadata handling 2011-02-21 12:33:16 +00:00
pv.h Add old_uuid field to struct physical_volume so we can still reference a PV 2011-02-21 12:31:28 +00:00
replicator_manip.c Rename vg_release to free_vg. 2010-12-08 20:50:48 +00:00
segtype.c Handle metadata with unknown segment types more gracefully. 2009-10-16 17:41:49 +00:00
segtype.h Remove const usage from destroy callbacks 2010-12-20 13:32:49 +00:00
snapshot_manip.c When removing a snapshot avoid preloading the origin if the 2010-04-23 02:57:39 +00:00
vg.c Refactor vg allocation code 2011-03-10 12:43:29 +00:00
vg.h Refactor vg allocation code 2011-03-10 12:43:29 +00:00