Skip to content

multipath fixes to tableless device handling

Martin Wilck dm-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest12 patches 2 repliesIn review

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/12libmultipath: dm_get_maps(): don't bail out for single-map failureslibmultipath/devmapper.c+1 -30 replies
2/12libmultipath: libmp_mapinfo(): return DMP_NO_MATCH for multi-target mapslibmultipath/devmapper.c tests/mapinfo.c+2 -21 reply
3/12libmultipath: check DM UUID earlier in libmp_mapinfo__libmultipath/devmapper.c tests/mapinfo.c+22 -130 replies
4/12libmultipath: use MAPINFO_CHECK_UUID in dm_get_multipathlibmultipath/devmapper.c+2 -40 replies
5/12multipathd: print an error when failing to connect to multipathdmultipathd/uxclnt.c+3 -10 replies
6/12multipathd.service: restart multipathd on failuremultipathd/multipathd.service.in+3 -00 replies
7/12libmultipath: make MAPINFO_CHECK_UUID work with partitionslibmultipath/devmapper.c libmultipath/devmapper.h+23 -150 replies
8/12libmultipath: check map UUID in do_foreach_partmapslibmultipath/devmapper.c+1 -10 replies
9/12libmultipath: increase log level for removing partitionslibmultipath/devmapper.c+1 -10 replies
10/12libmultipath: reduce log level of libmp_mapinfo() messageslibmultipath/devmapper.c+5 -30 replies
11/12libmultipath: don't log boring state messages at level 3libmultipath/discovery.c libmultipath/structs.h+9 -30 replies
12/12libmultipath: don't set dev_loss_tmo to 0 for NO_PATH_RETRY_FAILlibmultipath/discovery.c+1 -10 replies

Reviews trailers per patch

5 of 12 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchMartin WilckBenjamin Marzinski
SeriesR-b
1/12
2/12R-b
3/12R-b
4/12R-b
5/12R-b
6/12R-b
7/12
8/12
9/12
10/12
11/12
12/12

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 00/12] multipath fixes to tableless device handling

This patch set is a re-spin of Ben's previous series by the same name [1].

Patch 1 is my take on fixing the regression with map detection in multipath-tools 0.10.0. The basic idea is to never fail in dm_get_maps(), even if libmp_mapinfo() fails on one or more maps. The behavior wrt "empty" maps, or maps without table, is the same as in 0.9.9 and older, these maps are simply ignored by multipathd.

Patch 2 improves the semantics for decting maps with multiple targets.

Patch 3-6 are from Ben's original series, with unit test fixes added in patch 3.

Patch 7 and 8 improve the semantics of MAPINFO_CHECK_UUID for partitions.

Patch 9-11 are minor logging improvements.

Patch 12 is an independent bug fix I discovered recently.

As usual, comments and reviews welcome.

Martin

[1] https://lore.kernel.org/dm-devel/[email protected]/

Benjamin Marzinski (4):
libmultipath: check DM UUID earlier in libmp_mapinfo__
libmultipath: use MAPINFO_CHECK_UUID in dm_get_multipath
multipathd: print an error when failing to connect to multipathd multipathd.service: restart multipathd on failure

Martin Wilck (8):
libmultipath: dm_get_maps(): don't bail out for single-map failures
libmultipath: libmp_mapinfo(): return DMP_NO_MATCH for multi-target
maps
libmultipath: make MAPINFO_CHECK_UUID work with partitions
libmultipath: check map UUID in do_foreach_partmaps
libmultipath: increase log level for removing partitions
libmultipath: reduce log level of libmp_mapinfo() messages
libmultipath: don't log boring state messages at level 3
libmultipath: don't set dev_loss_tmo to 0 for NO_PATH_RETRY_FAIL

 libmultipath/devmapper.c         | 70 ++++++++++++++++----------------
 libmultipath/devmapper.h         |  8 +++-
 libmultipath/discovery.c         | 13 ++++--
 libmultipath/structs.h           |  1 +
 multipathd/multipathd.service.in |  3 ++
 multipathd/uxclnt.c              |  4 +-
 tests/mapinfo.c                  | 17 +++++---
 7 files changed, 71 insertions(+), 45 deletions(-)
Signature · 1 line
2.47.0