Skip to content

Alloc VG

Zdenek Kabelac 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/4Refactor vg allocation codelib/format_text/import_vsn1.c lib/metadata/metadata.c lib/metadata/vg.c +1 more+61 -870 replies
2/4Use alloc_vg for _pool_vg_readlib/format_pool/format_pool.c+33 -630 replies
3/4Use allog_vg for _free_vg in _pvsegs_sub_singletools/reporter.c+11 -141 reply
3/4Use allog_vg for _free_vg in _pvsegs_sub_single+0 -01 reply
3/4Use allog_vg for _free_vg in _pvsegs_sub_single+0 -00 replies
4/4Use alloc_vg for forma1_vg_readlib/format1/format1.c+23 -490 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/4] Alloc VG

Refactor allocation of volume group structure.

Patch is currently splitted into multiple files to make a review easier.

Things to check - why is pool_vg_read used seqno == 1? (To make it same for all - I'd leave to 0 ?)

Memory for import functions is always used from vg mempool.

Future updates -
It would be probably worth to switch vg name to char[128] (max vg name len) to simplify surrounding allocations...

Zdenek Kabelac (4):
Refactor vg allocation code
Use alloc_vg for _pool_vg_read
Use allog_vg for _free_vg in _pvsegs_sub_single
Use alloc_vg for forma1_vg_read

 lib/format1/format1.c         |   72 ++++++++++---------------------
 lib/format_pool/format_pool.c |   96 ++++++++++++++---------------------------
 lib/format_text/import_vsn1.c |   38 +++++-----------
 lib/metadata/metadata.c       |   75 ++++++-------------------------
 lib/metadata/vg.c             |   32 ++++++++++++++
 lib/metadata/vg.h             |    3 +
 tools/reporter.c              |   25 +++++------
 7 files changed, 128 insertions(+), 213 deletions(-)
Signature · 1 line
1.7.4.1