All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/30]: liblvm object property baseline, take2
@ 2009-05-11 13:01 Dave Wysochanski
  2009-05-11 13:01 ` [PATCH 01/30] Define handles to liblvm objects for pv, vg, lv, lvseg, pvseg Dave Wysochanski
  2009-05-14  3:33 ` [PATCH 0/30]: liblvm object property baseline, take2 Dave Wysochanski
  0 siblings, 2 replies; 32+ messages in thread
From: Dave Wysochanski @ 2009-05-11 13:01 UTC (permalink / raw)
  To: lvm-devel

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 <mbroz@redhat.com>
Date:   Mon May 11 10:35:00 2009 +0000

    Fix previous commit (scripts/Makefile targets order)




^ permalink raw reply	[flat|nested] 32+ messages in thread

end of thread, other threads:[~2009-05-14  3:33 UTC | newest]

Thread overview: 32+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-11 13:01 [PATCH 0/30]: liblvm object property baseline, take2 Dave Wysochanski
2009-05-11 13:01 ` [PATCH 01/30] Define handles to liblvm objects for pv, vg, lv, lvseg, pvseg Dave Wysochanski
2009-05-11 13:01   ` [PATCH 02/30] Add lvm_object_prop.pl to generate liblvm object property functions Dave Wysochanski
2009-05-11 13:01     ` [PATCH 03/30] Add generated files, lvm_object_prop.[ch], to lib/report directory and build Dave Wysochanski
2009-05-11 13:01       ` [PATCH 04/30] Update vg_size 'disp' function to call liblvm 'get' function Dave Wysochanski
2009-05-11 13:01         ` [PATCH 05/30] Modify lv_major and lv_minor fields to call liblvm 'get' functions Dave Wysochanski
2009-05-11 13:01           ` [PATCH 06/30] Update lvreadahead_disp to call liblvm 'get' function Dave Wysochanski
2009-05-11 13:01             ` [PATCH 07/30] Update lvkreadhead_disp " Dave Wysochanski
2009-05-11 13:01               ` [PATCH 08/30] Update lv_size field - create lvsize_disp() and " Dave Wysochanski
2009-05-11 13:01                 ` [PATCH 09/30] Update lvsegcount_disp() to " Dave Wysochanski
2009-05-11 13:01                   ` [PATCH 10/30] Update originsize_disp() " Dave Wysochanski
2009-05-11 13:01                     ` [PATCH 11/30] Update devsize_disp() " Dave Wysochanski
2009-05-11 13:01                       ` [PATCH 12/30] Update pvmdafree_disp() " Dave Wysochanski
2009-05-11 13:01                         ` [PATCH 13/30] Update pvmdasize_disp and vgmdasize_disp " Dave Wysochanski
2009-05-11 13:01                           ` [PATCH 14/30] Update pe_start field - create pestart_disp which calls " Dave Wysochanski
2009-05-11 13:01                             ` [PATCH 15/30] Update pvsize_disp to call " Dave Wysochanski
2009-05-11 13:01                               ` [PATCH 16/30] Update pvfree_disp " Dave Wysochanski
2009-05-11 13:01                                 ` [PATCH 17/30] Update pvused_disp " Dave Wysochanski
2009-05-11 13:01                                   ` [PATCH 18/30] Update pv_pe_count and pv_pe_alloc_count fields to call liblvm 'get' functions Dave Wysochanski
2009-05-11 13:01                                     ` [PATCH 19/30] Update pvmdas_disp to call liblvm 'get' function Dave Wysochanski
2009-05-11 13:01                                       ` [PATCH 20/30] Update vgfree_disp " Dave Wysochanski
2009-05-11 13:01                                         ` [PATCH 21/30] Update a few simple vg 'NUM' fields to call liblvm 'get' functions Dave Wysochanski
2009-05-11 13:01                                           ` [PATCH 22/30] Update lvcount_disp to call liblvm 'get' function Dave Wysochanski
2009-05-11 13:01                                             ` [PATCH 23/30] Update vg_snap_count and vg_seqno display functions to call liblvm 'get' Dave Wysochanski
2009-05-11 13:01                                               ` [PATCH 24/30] Update vgmdas_disp to call liblvm 'get' function Dave Wysochanski
2009-05-11 13:01                                                 ` [PATCH 25/30] Update vgmdafree_disp " Dave Wysochanski
2009-05-11 13:01                                                   ` [PATCH 26/30] Update a few lvseg field display functions to call liblvm 'get' functions Dave Wysochanski
2009-05-11 13:01                                                     ` [PATCH 27/30] Update chunksize_disp to call liblvm 'get' function Dave Wysochanski
2009-05-11 13:01                                                       ` [PATCH 28/30] Update segstart_disp and segstartpe_disp to call liblvm 'get' functions Dave Wysochanski
2009-05-11 13:01                                                         ` [PATCH 29/30] Update segsize_disp to call liblvm 'get' function Dave Wysochanski
2009-05-11 13:01                                                           ` [PATCH 30/30] Update pvseg_start and pvseg_size fields to have a disp function calling liblvm Dave Wysochanski
2009-05-14  3:33 ` [PATCH 0/30]: liblvm object property baseline, take2 Dave Wysochanski

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.