Skip to content

Replicator lvm support

Zdenek Kabelac lvm-devel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest22 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/22Export outsz() and outhnt() for moduleslib/format_text/export.c lib/format_text/text_export.h+11 -140 replies
2/22Export outfc() macro and out_text_with_comment()lib/format_text/export.c lib/format_text/text_export.h+7 -30 replies
3/22Use outsz macrolib/mirror/mirrored.c lib/striped/striped.c+4 -40 replies
4/22Replicator: add libdm supportlibdm/.exported_symbols libdm/libdevmapper.h libdm/libdm-deptree.c+301 -50 replies
5/22Replicator: suspend/deactivate replicatorlibdm/.exported_symbols libdm/libdevmapper.h libdm/libdm-deptree.c+66 -00 replies
6/22Replicator: add lvm supportconfigure.in lib/Makefile.in lib/commands/toolcontext.c +9 more+1310 -10 replies
7/22Replicator: validation of replicator segmentslib/metadata/metadata.c+68 -00 replies
8/22Replicator: extend _lv_each_dependency() rep. depslib/metadata/metadata.c+4 -00 replies
9/22Replicator: add sorted vg_name_listlib/metadata/metadata-exported.h lib/metadata/replicator_manip.c+62 -00 replies
10/22Replicator: use vg_name_list for _process_one_vg()lib/commands/toolcontext.c lib/commands/toolcontext.h tools/toollib.c+70 -220 replies
11/22Replicator: use str_list for process_each_lv_in_vglib/commands/toolcontext.c lib/commands/toolcontext.h tools/toollib.c+74 -20 replies
12/22Replicator: update _create_partial_dtree()lib/activate/dev_manager.c+98 -00 replies
13/22Replicator: using vgs_missed for error counttools/vgchange.c+1 -00 replies
14/22Replicator: add vgs_print for message postponinglib/commands/toolcontext.h tools/toollib.c tools/vgchange.c+16 -20 replies
15/22Replicator: add replicator to dtreelib/activate/dev_manager.c+59 -10 replies
16/22Replicator: do not remove of replicators' LVslib/metadata/lv_manip.c+9 -00 replies
17/22Replicator: no crash lvresize if area_count is 0lib/metadata/lv_manip.c+5 -00 replies
18/22Replicator: activate change for vgchangetools/vgchange.c+4 -00 replies
19/22Replicator: add new options for replicatorlib/config/defaults.h lib/metadata/metadata-exported.h tools/args.h +4 more+74 -20 replies
20/22Replicator: update copyright dateslib/activate/dev_manager.c lib/metadata/segtype.h libdm/libdm-deptree.c+3 -30 replies
21/22Replicator: new variable in generated filelib/misc/configure.h.in+7 -10 replies
22/22Replicator: update of generated configure fileconfigure+33 -10 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/22] Replicator lvm support

LVM support for Replicator device mapper target.

Patches without Replicator: prefix are generic simple patches or some minor code cleanups - they are here just to get accurate diffs.

First Replicator patch adds libdm support followed by lvm code support.

Tricky part is the usage of sorted vg_name_list.

This patch set doesn't yet contain functional lvm commands for creation of replicator, so for activation and deactivation hand written meta-data must be used.

Current code will activate also VGs from remote volume groups if they are not yet active and work with already active remote VGs. Deactivation will leave remove VGs active.

vgchange and lvchange is resolved.

Command line support is in progress.

Zdenek Kabelac (22):
Export outsz() and outhnt() for modules Export outfc() macro and out_text_with_comment() Use outsz macro
Replicator: add libdm support
Replicator: suspend/deactivate replicator
Replicator: add lvm support
Replicator: validation of replicator segments
Replicator: extend _lv_each_dependency() rep. deps
Replicator: add sorted vg_name_list
Replicator: use vg_name_list for _process_one_vg()
Replicator: use str_list for process_each_lv_in_vg
Replicator: update _create_partial_dtree()
Replicator: using vgs_missed for error count
Replicator: add vgs_print for message postponing
Replicator: add replicator to dtree
Replicator: do not remove of replicators' LVs
Replicator: no crash lvresize if area_count is 0
Replicator: activate change for vgchange
Replicator: add new options for replicator
Replicator: update copyright dates
Replicator: new variable in generated file
Replicator: update of generated configure file

 configure                        |   34 ++-
 configure.in                     |   17 +
 lib/Makefile.in                  |    9 +
 lib/activate/dev_manager.c       |  160 ++++++++-
 lib/commands/toolcontext.c       |    7 +
 lib/commands/toolcontext.h       |    4 +
 lib/config/defaults.h            |    1 +
 lib/format_text/export.c         |   29 +-
 lib/format_text/flags.c          |    2 +
 lib/format_text/text_export.h    |    6 +
 lib/metadata/lv_manip.c          |   15 +
 lib/metadata/merge.c             |   14 +
 lib/metadata/metadata-exported.h |  113 ++++++-
 lib/metadata/metadata.c          |   72 ++++
 lib/metadata/replicator_manip.c  |  354 ++++++++++++++++
 lib/metadata/segtype.h           |   10 +-
 lib/mirror/mirrored.c            |    4 +-
 lib/misc/configure.h.in          |    8 +-
 lib/replicator/.exported_symbols |    1 +
 lib/replicator/Makefile.in       |   28 ++
 lib/replicator/replicator.c      |  822 ++++++++++++++++++++++++++++++++++++++
 lib/striped/striped.c            |    4 +-
 libdm/.exported_symbols          |    3 +
 libdm/libdevmapper.h             |   29 ++
 libdm/libdm-deptree.c            |  342 ++++++++++++++++-
 tools/args.h                     |    5 +
 tools/commands.h                 |   10 +-
 tools/lvcreate.c                 |   49 +++
 tools/lvmcmdline.c               |    9 +
 tools/toollib.c                  |  170 +++++++--
 tools/tools.h                    |    1 +
 tools/vgchange.c                 |   15 +-
 32 files changed, 2286 insertions(+), 61 deletions(-)
 create mode 100644 lib/metadata/replicator_manip.c
 create mode 100644 lib/replicator/.exported_symbols
 create mode 100644 lib/replicator/Makefile.in
 create mode 100644 lib/replicator/replicator.c