All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 00/08] Add lvm lv properties for lvm2app, return struct.
@ 2010-10-19 11:32 Dave Wysochanski
  2010-10-19 11:32 ` [PATCH 1/8] Refactor and add code for (lv) 'lv_name' get function Dave Wysochanski
                   ` (7 more replies)
  0 siblings, 8 replies; 22+ messages in thread
From: Dave Wysochanski @ 2010-10-19 11:32 UTC (permalink / raw)
  To: lvm-devel

This is the modified patchset based on Petr's suggestion of changing
the return value from 'int' to struct lvm_property_value:
http://www.redhat.com/archives/lvm-devel/2010-October/msg00068.html

I agree it is a good approach and so am posting it for comparison
with the previous approach and final decision.

Patchset adds remaining lv properties for lvm2app, and adds
the lvm2app 'get' interfaces for vg, pv, and lv, and interactive
tests to exercise the interface.

Changes since last patchset:
1. Added readahead attributes (lv_read_ahead, lv_kernel_read_ahead)
2. Incorporated most all feedback comments, including renaming of the
fields, etc.  I did not change the 'get' function prototype to return
the property value rather than passing it in.
3. Updated comments describing new APIs in lvm2app.h
4. Changed return value from 'int' to lvm_property_value based on
Petr's suggestion.  Added a 'is_valid' flag, which must be checked
before using the value.
5. Simplified the common code in lvm2app into a local 'get_property'
function which allows for a single-line implementation of
lvm_{pv|vg|lv}_get_property

The only two lv properties not included now are still the float/percent
based properties, snap_percent and copy_percent.  These should be
refactored carefully and I did not want to delay these patches further.

All vg and pv properties and most lv properties may now be queried
with this patchset.



^ permalink raw reply	[flat|nested] 22+ messages in thread
* [PATCH 00/08] Add lvm lv properties for lvm2app.
@ 2010-10-19  4:02 Dave Wysochanski
  2010-10-19  4:02 ` [PATCH 5/8] Add lvm_vg_get_property() generic vg property function Dave Wysochanski
  0 siblings, 1 reply; 22+ messages in thread
From: Dave Wysochanski @ 2010-10-19  4:02 UTC (permalink / raw)
  To: lvm-devel

This patchset adds remaining lv properties for lvm2app, and adds
the lvm2app interfaces and interactive tests to exercise
the interface.

Changes since last patchset:
1. Added readahead attributes (lv_read_ahead, lv_kernel_read_ahead)
2. Incorporated most all Petr and Kabi's feedback comments, including
renaming of the fields, etc.  I did not change the 'get' function
prototype to return the property value rather than passing it in.
I will do this as a second patchset.
3. Updated comments describing new APIs in lvm2app.h

The only two lv properties not included now are still the float/percent
based properties, snap_percent and copy_percent.  These should be
refactored carefully and I did not want to delay these patches further.

All vg and pv properties and most lv properties may now be queried
with this patchset.



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

end of thread, other threads:[~2010-10-25 13:55 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-19 11:32 [PATCH 00/08] Add lvm lv properties for lvm2app, return struct Dave Wysochanski
2010-10-19 11:32 ` [PATCH 1/8] Refactor and add code for (lv) 'lv_name' get function Dave Wysochanski
2010-10-20 21:31   ` Petr Rockai
2010-10-19 11:32 ` [PATCH 2/8] Refactor and add code for (lv) 'lv_origin' " Dave Wysochanski
2010-10-20 21:41   ` Petr Rockai
2010-10-21 14:38     ` Dave Wysochanski
2010-10-19 11:32 ` [PATCH 3/8] Add lv_read_ahead and lv_kernel_read_ahead 'get' functions Dave Wysochanski
2010-10-20 21:43   ` Petr Rockai
2010-10-19 11:32 ` [PATCH 4/8] Rename fields in lvm_property_type Dave Wysochanski
2010-10-20 21:45   ` Petr Rockai
2010-10-19 11:32 ` [PATCH 5/8] Add lvm_vg_get_property() generic vg property function Dave Wysochanski
2010-10-20 21:51   ` Petr Rockai
2010-10-21 18:39     ` Dave Wysochanski
2010-10-24 12:04       ` Petr Rockai
2010-10-25 13:55         ` Dave Wysochanski
2010-10-19 11:32 ` [PATCH 6/8] Add lvm_pv_get_property() generic function to obtain value of any pv property Dave Wysochanski
2010-10-20 21:54   ` Petr Rockai
2010-10-19 11:32 ` [PATCH 7/8] Add lvm_lv_get_property() generic function to obtain value of any lv property Dave Wysochanski
2010-10-20 21:55   ` Petr Rockai
2010-10-19 11:32 ` [PATCH 8/8] Add interactive tests for lvm_{pv|vg|lv}_get_property() Dave Wysochanski
2010-10-20 21:57   ` Petr Rockai
  -- strict thread matches above, loose matches on Subject: below --
2010-10-19  4:02 [PATCH 00/08] Add lvm lv properties for lvm2app Dave Wysochanski
2010-10-19  4:02 ` [PATCH 5/8] Add lvm_vg_get_property() generic vg property function 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.