Skip to content

take2: liblvm initialization, attribute, and object handling

Dave Wysochanski lvm-devel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest21 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/21Add lvm_create, lvm_destroy, lvm_reload_config() APIs.lib/Makefile.in lib/lvm2.c lib/lvm2.h +1 more+98 -250 replies
2/21Move vg_t, lv_t, and pv_t from metadata-exported.h into lvm2.hlib/lvm2.h lib/metadata/metadata-exported.h+10 -70 replies
3/21Add lvm_pv_name, lvm_vg_name, and lvm_lv_name accessors.lib/lvm2.h lib/metadata/metadata.c+22 -00 replies
4/21Add lvm_vg_open().lib/lvm2.h lib/metadata/metadata.c+16 -00 replies
5/21Add lvm_vg_close().lib/lvm2.h lib/metadata/metadata.c+12 -00 replies
6/21Add lvm_vg_get_attr_list() libLVM API to return a list of VG attribute names.lib/lvm2.h lib/report/report.c libdm/.exported_symbols +2 more+71 -00 replies
7/21Add lvm_vg_get_attr_value() libLVM API to query to value of a VG attribute.lib/lvm2.h lib/report/report.c libdm/.exported_symbols +2 more+72 -00 replies
8/21Add lvm_lvs_in_vg() API.lib/lvm2.h lib/metadata/metadata.c+36 -00 replies
9/21Add lvm_pvs_in_vg().lib/lvm2.h lib/metadata/metadata.c+15 -00 replies
10/21Add lvm_lv_get_attr_list() and lvm_lv_get_attr_value().lib/lvm2.h lib/report/report.c+60 -00 replies
11/21First cut at adding pv_obj_* APIs.lib/lvm2.c lib/lvm2.h+157 -00 replies
12/21Add lvm-types.h to lvm2.h file.lib/lvm2.h+1 -00 replies
13/21Add test code.test/api/test.c+480 -70 replies
14/21Add lvm_errno(), lvm_strerror, lvm_vg_mode.lib/lvm2.c lib/lvm2.h lib/metadata/metadata-exported.h +2 more+111 -450 replies
15/21Add write mode to vg_open(), calling the new vg_read API with READ_FOR_UPDATE.lib/lvm2.c+6 -30 replies
16/21Add lvm_vg_uuid with test code.lib/lvm2.h lib/metadata/metadata.c test/api/test.c+17 -10 replies
17/21Update lvm_vg_open to take either a name or uuid.lib/lvm2.c lib/lvm2.h lib/metadata/metadata.c +1 more+98 -280 replies
18/21Update lvmcache_update_vg to use vgid as well as vgname.lib/cache/lvmcache.c+1 -10 replies
19/21Update lvm_vg_open() to read and store the list of vg attributes.lib/lvm2.c lib/metadata/metadata-exported.h+25 -80 replies
20/21Update test code to use new lvm_get_vg_attr_list(), list from lvm_vg_open().test/api/test.c+45 -390 replies
21/21Update lvm_vg_get_attr_list() to use attributes obtained during vg_open().lib/lvm2.h lib/report/report.c+6 -230 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/21] take2: liblvm initialization, attribute, and object handling

This is an updated set of liblvm patches. Changes since the last time:
- lvm_vg_open(): added write mode with an attempt at allowing vgid as well as vgnames. This clearly does not work in all cases currently but is a start.
- lvm_vg_get_attr_list(): moved into lvm_vg_open() - does make sense and solves the memory problem with the report handle
- adds struct lib_context, containing struct cmd_context as well as errno.
- lvm_errno() and lvm_strerrno()