1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-03 05:18:29 +03:00
lvm2/lib
Zdenek Kabelac 3019419e95 Refactor vg allocation code
Create new function alloc_vg() to allocate VG structure.

It takes pool_name (for easier debugging).
and also take vg_name to futher simplify code.

Move remainder of _build_vg_from_pds  to _pool_vg_read
and use vg memory pool for import functions.
(it's been using smem -> fid mempool -> cmd mempool)
(FIXME: remove mempool parameter for import functions and use vg).

Move remainder of the _build_vg to _format1_vg_read
2011-03-10 12:43:29 +00:00
..
activate Add fall through comments 2011-02-28 19:53:03 +00:00
cache Avoid possible endless loop in _free_vginfo when 4 or more VGs have same name. 2011-03-10 03:03:03 +00:00
commands Replace PV_MIN_SIZE with function pv_min_size() 2011-02-18 14:11:22 +00:00
config Add fall through comments 2011-02-28 19:53:03 +00:00
datastruct Some const cleanups 2010-12-20 13:19:13 +00:00
device Handle decimal digits with --units instead of ignoring them silently. 2011-02-18 23:09:55 +00:00
display Fix some compile warnings on RHEL5 2011-03-01 20:17:56 +00:00
error Remove const usage from destroy callbacks 2010-12-20 13:32:49 +00:00
filters Const fixing 2011-02-18 14:47:28 +00:00
format1 Refactor vg allocation code 2011-03-10 12:43:29 +00:00
format_pool Refactor vg allocation code 2011-03-10 12:43:29 +00:00
format_text Refactor vg allocation code 2011-03-10 12:43:29 +00:00
freeseg Remove const usage from destroy callbacks 2010-12-20 13:32:49 +00:00
label Add dm_zalloc and use it and dm_pool_zalloc throughout. 2010-09-30 21:06:50 +00:00
locking Critical section 2011-02-18 14:16:11 +00:00
log Critical section 2011-02-18 14:16:11 +00:00
metadata Refactor vg allocation code 2011-03-10 12:43:29 +00:00
mirror Fix !DEVMAPPER_SUPPORT build 2011-02-18 14:29:39 +00:00
misc Replace PV_MIN_SIZE with function pv_min_size() 2011-02-18 14:11:22 +00:00
mm Use lvm_getpagesize wrapper 2011-03-06 17:52:07 +00:00
replicator Remove const usage from destroy callbacks 2010-12-20 13:32:49 +00:00
report Fix reading of released memory 2011-03-05 12:14:00 +00:00
snapshot Fix !DEVMAPPER_SUPPORT build 2011-02-18 14:29:39 +00:00
striped Remove const usage from destroy callbacks 2010-12-20 13:32:49 +00:00
unknown Remove const usage from destroy callbacks 2010-12-20 13:32:49 +00:00
uuid Const fixing 2011-02-18 14:47:28 +00:00
zero Remove const usage from destroy callbacks 2010-12-20 13:32:49 +00:00
Makefile.in Refactor the percent (mirror sync, snapshot usage) handling code to use 2010-11-30 11:53:31 +00:00