Skip to content

Add lvm lv properties for lvm2app.

Dave Wysochanski lvm-devel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest8 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8Refactor and add code for (lv) 'lv_name' get function.lib/metadata/lv.c lib/metadata/lv.h lib/report/properties.c+7 -10 replies
2/8Refactor and add code for (lv) 'lv_origin' get function.lib/metadata/lv.c lib/metadata/lv.h lib/report/properties.c +1 more+12 -30 replies
3/8Add lv_read_ahead and lv_kernel_read_ahead 'get' functions.lib/metadata/lv.c lib/metadata/lv.h lib/report/properties.c +1 more+15 -50 replies
4/8Rename fields in lvm_property_type.lib/report/properties.c lib/report/properties.h+11 -130 replies
5/8Add lvm_vg_get_property() generic vg property function.liblvm/lvm2app.h liblvm/lvm_vg.c+86 -10 replies
6/8Add lvm_pv_get_property() generic function to obtain value of any pv property.liblvm/lvm2app.h liblvm/lvm_pv.c+66 -00 replies
7/8Add lvm_lv_get_property() generic function to obtain value of any lv property.lib/report/properties.c lib/report/properties.h liblvm/lvm2app.h +1 more+72 -00 replies
8/8Add interactive tests for lvm_{pv|vg|lv}_get_property().test/api/test.c+115 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 00/08] Add lvm lv properties for lvm2app.

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.