opensvc / multipath-tools

Other
60 stars 48 forks source link

multipath-tools update Q2/2021 #13

Closed mwilck closed 3 years ago

mwilck commented 3 years ago

Hello Christophe,

Here is another PR for multipath-tools. I'd suggest a version bump too, as the diffstat is quite big. The last 3 commits ~haven't been reviewed by @bmarzins yet, they~ are fixups for Ben's latest series.

@bmarzins:

@xosevp:

@mwilck:

diffstat

 .gitignore                               |    4 +
 libmpathpersist/mpath_persist.c          |   10 +-
 libmultipath/Makefile                    |    2 +-
 libmultipath/alias.c                     |   84 +++---
 libmultipath/blacklist.c                 |   13 +-
 libmultipath/configure.c                 |   80 ++----
 libmultipath/configure.h                 |    4 +-
 libmultipath/devmapper.c                 |   44 +--
 libmultipath/devmapper.h                 |    4 +-
 libmultipath/dict.c                      |  314 +++++++++------------
 libmultipath/dict.h                      |   19 +-
 libmultipath/discovery.c                 |   13 +-
 libmultipath/dmparser.c                  |   47 +---
 libmultipath/dmparser.h                  |    2 +-
 libmultipath/foreign.c                   |   78 ++----
 libmultipath/foreign.h                   |   13 +-
 libmultipath/foreign/nvme.c              |  100 ++++---
 libmultipath/generic.c                   |   26 +-
 libmultipath/generic.h                   |   17 +-
 libmultipath/hwtable.c                   |    3 +-
 libmultipath/libmultipath.version        |   23 +-
 libmultipath/parser.c                    |   50 ++--
 libmultipath/parser.h                    |   17 +-
 libmultipath/print.c                     | 1839 ++++++++++++++++++++++++++++++++++++++++++++++++++++-------------------------------------------------------------------
 libmultipath/print.h                     |  131 ++-------
 libmultipath/prioritizers/weightedpath.c |   71 ++---
 libmultipath/propsel.c                   |  147 +++++-----
 libmultipath/strbuf.c                    |  207 ++++++++++++++
 libmultipath/strbuf.h                    |  168 +++++++++++
 libmultipath/structs.h                   |    1 -
 libmultipath/structs_vec.c               |   23 +-
 libmultipath/structs_vec.h               |   11 +-
 libmultipath/uevent.c                    |    2 +-
 libmultipath/util.c                      |    9 +-
 libmultipath/util.h                      |    1 +
 multipath/main.c                         |   18 +-
 multipathd/cli.c                         |   94 +++----
 multipathd/cli_handlers.c                |  349 ++++++-----------------
 multipathd/dmevents.c                    |    2 +-
 multipathd/main.c                        |   32 ++-
 tests/Makefile                           |    3 +-
 tests/alias.c                            |   41 ++-
 tests/dmevents.c                         |    4 +-
 tests/strbuf.c                           |  412 +++++++++++++++++++++++++++
mwilck commented 3 years ago

Added Ben's reviewed-by: tags. This should be ready to merge now.

mwilck commented 3 years ago

resolves #10.