Skip to content

Add lvm lvseg properties for lvm2app.

Dave Wysochanski lvm-devel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4Add lvseg_t to lvm2app and lvm_lv_list_lvsegs().liblvm/lvm2app.h liblvm/lvm_lv.c+58 -00 replies
2/4Add lvseg 'get' functions.lib/metadata/lv.c lib/metadata/lv.h lib/report/properties.c +2 more+70 -242 replies
3/4Add lvm_lvseg_get_property() function.liblvm/lvm2app.h liblvm/lvm_lv.c liblvm/lvm_misc.c +3 more+57 -51 reply
4/4Update tests for lvseg apis.test/api/test.c+39 -377 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/04] Add lvm lvseg properties for lvm2app.

This patchset adds lvseg_t and lvm_lv_list_lvsegs() API to lvm2app, then adds lvseg properties and API. It was created on top of the following patchset submitted earlier:
http://www.redhat.com/archives/lvm-devel/2010-October/msg00153.html

All lvseg properties are covered by this patch, with the exception of 'seg_pe_ranges' and 'devices'.

This patchset shows the basic approach to enumerating lvsegs, then querying properties, very similar to the vg, lv, or pv. Similar APIs can be made to enumerate and query pvsegs, which would complete the attribute patchset and allow all properties in the reports to be queried.