: liblvm object property baseline, take2
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest30 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/30 | Define handles to liblvm objects for pv, vg, lv, lvseg, pvseg.lib/ liblvm/ | +16 | 0 replies | |
| 2/30 | Add lvm_object_prop.pl to generate liblvm object property functions.lib/ | +232 | 0 replies | |
| 3/30 | Add generated files, lvm_object_prop.[ch], to lib/report directory and buildinclude/ lib/ lib/ +2 more | +1447 | 0 replies | |
| 4/30 | Update vg_size 'disp' function to call liblvm 'get' function.lib/ lib/ | +3 | 0 replies | |
| 5/30 | Modify lv_major and lv_minor fields to call liblvm 'get' functions.lib/ lib/ | +27 | 0 replies | |
| 6/30 | Update lvreadahead_disp to call liblvm 'get' function.lib/ lib/ | +5 | 0 replies | |
| 7/30 | Update lvkreadhead_disp to call liblvm 'get' function.lib/ lib/ | +9 | 0 replies | |
| 8/30 | Update lv_size field - create lvsize_disp() and call liblvm 'get' function.lib/ lib/ | +13 | 0 replies | |
| 9/30 | Update lvsegcount_disp() to call liblvm 'get' function.lib/ lib/ | +2 | 0 replies | |
| 10/30 | Update originsize_disp() to call liblvm 'get' function.lib/ lib/ | +10 | 0 replies | |
| 11/30 | Update devsize_disp() to call liblvm 'get' function.lib/ lib/ lib/ | +9 | 0 replies | |
| 12/30 | Update pvmdafree_disp() to call liblvm 'get' function.lib/ lib/ | +23 | 0 replies | |
| 13/30 | Update pvmdasize_disp and vgmdasize_disp to call liblvm 'get' function.lib/ lib/ | +33 | 0 replies | |
| 14/30 | Update pe_start field - create pestart_disp which calls liblvm 'get' function.lib/ lib/ | +14 | 0 replies | |
| 15/30 | Update pvsize_disp to call liblvm 'get' function.lib/ lib/ | +8 | 0 replies | |
| 16/30 | Update pvfree_disp to call liblvm 'get' function.lib/ lib/ | +9 | 0 replies | |
| 17/30 | Update pvused_disp to call liblvm 'get' function.lib/ lib/ | +8 | 0 replies | |
| 18/30 | Update pv_pe_count and pv_pe_alloc_count fields to call liblvm 'get' functions.lib/ lib/ | +28 | 0 replies | |
| 19/30 | Update pvmdas_disp to call liblvm 'get' function.lib/ lib/ | +9 | 0 replies | |
| 20/30 | Update vgfree_disp to call liblvm 'get' function.lib/ lib/ | +2 | 0 replies | |
| 21/30 | Update a few simple vg 'NUM' fields to call liblvm 'get' functions.lib/ lib/ | +85 | 0 replies | |
| 22/30 | Update lvcount_disp to call liblvm 'get' function.lib/ lib/ | +2 | 0 replies | |
| 23/30 | Update vg_snap_count and vg_seqno display functions to call liblvm 'get'.lib/ lib/ | +26 | 0 replies | |
| 24/30 | Update vgmdas_disp to call liblvm 'get' function.lib/ lib/ | +2 | 0 replies | |
| 25/30 | Update vgmdafree_disp to call liblvm 'get' function.lib/ lib/ | +16 | 0 replies | |
| 26/30 | Update a few lvseg field display functions to call liblvm 'get' functions.lib/ lib/ | +41 | 0 replies | |
| 27/30 | Update chunksize_disp to call liblvm 'get' function.lib/ lib/ | +7 | 0 replies | |
| 28/30 | Update segstart_disp and segstartpe_disp to call liblvm 'get' functions.lib/ lib/ | +7 | 0 replies | |
| 29/30 | Update segsize_disp to call liblvm 'get' function.lib/ lib/ | +2 | 0 replies | |
| 30/30 | Update pvseg_start and pvseg_size fields to have a disp function calling liblvmlib/ lib/ | +26 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/30]: liblvm object property baseline, take2
The following 30 patches supercede the previous 8 patch posting and implement a baseline for liblvm objects and their properties. The primary focus/goal of these patches are:
1. Define / clarify the main liblvm objects and their handles
2. Get the numeric object properties for a specific handle
3. Convert reporting commands to call liblvm 'get' functions for 'NUM' fields
Together with the handles, the 'get' functions will provide equivalent functionality to the reporting commands (pvs, vgs, lvs) while keeping with the object model of liblvm.
This set of patches converts most all numeric reporting field 'disp' functions to call into liblvm 'get' property functions. There should be no functional change after this patch, and I believe this patchset, while lengthy, should be relatively easy to review.
The bulk of this patchset involves a couple changes for each field:
1) moves the logic of the field data calculation from the 'disp' function into liblvm 'get' function
2) adds a 'disp' function for fields with simple dereferences (these were originally covered by the same 'disp' function (for example, _uint32_disp())
There are a few areas of particular interest in this patchset. First, the return types for all the 'get' functions are the same at uint64_t. This would allow internal changes to field sizes without making them visible in the API but also obscures the internal type size. I could easily make the internal size match the return type of the 'get' function if this is deemed the better tradeoff, but I thought fixed uint64_t was decided in a previous discussion. Second, a couple numeric fields were ommitted from this patch: snap_percent, and copy_percent. These fields involve a float value and so will be dealt with in a later patchset.
Along with this patchset I've been adding nightly tests to cover some of the numeric reporting fields not yet covered. We are still missing a few fields in the nightly tests and some deserve better coverage but we are getting closer to full coverage.
This set of patches pass the nightly test suite.
They apply cleanly against the following commit:
commit 97e41de23f5a021dfba8fb16692a9e2badec7d56
Author: Milan Broz <[email protected]> Date: Mon May 11 10:35:00 2009 +0000
Fix previous commit (scripts/Makefile targets order)