1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-09 01:18:39 +03:00
lvm2/lib/metadata
Dave Wysochanski 483a7cb6d5 Refactor a few report field calculations into separate functions.
For liblvm 'get' functions, we should share code with the reporting functions.
This means we need common code to return the values for the fields.
In this patch we refactor a few of the fields needed in liblvm.
Unfortunately, for the simple fields that do derefernces of structure
members (for example, vg_extent_count), we cannot call the common function
from the reporting infrastructure without more refactoring.  The reason is
that the dereference of the simple fields is done deep inside the reporting
code (to get the generic "data" pointer), and the display function is a
generic 'size32' function.  We can fix these issues later with more
refactoring.

Should be no functional change and the testsuite should cover any possible
regressions.  The only fields in the report affected by this patch are:
vg_size, vg_free, and pv_mda_count.


Author: Dave Wysochanski <dwysocha@redhat.com>
2009-07-26 12:41:09 +00:00
..
lv_alloc.h Calculate mirror log size instead of hardcoding 1 extent size. 2008-12-19 15:24:52 +00:00
lv_manip.c Move _lvcreate into the internal library and rename to lv_create_single. 2009-07-26 02:33:35 +00:00
merge.c Right, a simple build (without options) is working again. 2008-11-03 22:14:30 +00:00
metadata-exported.h Refactor a few report field calculations into separate functions. 2009-07-26 12:41:09 +00:00
metadata.c Refactor a few report field calculations into separate functions. 2009-07-26 12:41:09 +00:00
metadata.h Fix readahead calculation problems. 2009-06-01 12:43:31 +00:00
mirror.c Fix convert polling to ignore LV with different UUID. 2009-06-01 14:43:27 +00:00
pv_alloc.h Right, a simple build (without options) is working again. 2008-11-03 22:14:30 +00:00
pv_manip.c Right, a simple build (without options) is working again. 2008-11-03 22:14:30 +00:00
pv_map.c Do not include MISSING_PVs in allocation maps. 2009-04-23 16:41:27 +00:00
pv_map.h Right, a simple build (without options) is working again. 2008-11-03 22:14:30 +00:00
segtype.c Right, a simple build (without options) is working again. 2008-11-03 22:14:30 +00:00
segtype.h Permit several segment types to be registered by a single shared object. 2009-07-08 12:36:01 +00:00
snapshot_manip.c Use log_error macro consistently throughout in place of log_err. 2009-07-15 20:02:46 +00:00