Skip to content

multipath-tools: unmangle WWIDs if necessary

[email protected] dm-devel 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 0 repliesNew
  2. v14 patches 4 repliesSuperseded

Changes in v2 from the cover letter

* Patch 02: several fixes suggested by Ben Marzinski
* Patch 04: dropped, it would risk being killed by SIGBUS if multipath would truncate the wwids file while multipathd had it mapped.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3libmultipath: constify functions in wwid.clibmultipath/wwids.c libmultipath/wwids.h+11 -140 replies
2/3libmultipath: unmangle WWIDs if necessarylibmultipath/discovery.c libmultipath/discovery.h+96 -40 replies
3/3multipath-tools tests: add test for WWID unmanglingtests/Makefile tests/cmocka-compat.h tests/wwid-unmangle.c+379 -20 replies

Reviews trailers per patch

2 of 3 patches have a Reviewed-by or Acked-by.

PatchBenjamin Marzinski
1/3R-b
2/3
3/3R-b

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 0/3] multipath-tools: unmangle WWIDs if necessary

From: Martin Wilck <[email protected]>

Recent changes in sg3_utils have changed the way certain WWIDs are presented to the system. This may lead to maps not being set up or even being destroyed or removed. Fix this by "unmangling" the WWIDs similar to libdevmapper.

The main part of this series is patch 2/4, it's commit message contains detailed information. Patch 3 adds tests for the unmangling functionality.

Patch 1 is a small prerequisite.

Comments and questions welcome!

Martin

---
Changes v1 -> v2:

* Patch 02: several fixes suggested by Ben Marzinski
* Patch 04: dropped, it would risk being killed by SIGBUS if multipath would truncate the wwids file while multipathd had it mapped.

Martin Wilck (3):
libmultipath: constify functions in wwid.c
libmultipath: unmangle WWIDs if necessary multipath-tools tests: add test for WWID unmangling

 libmultipath/discovery.c | 100 ++++++++++-
 libmultipath/discovery.h |   1 +
 libmultipath/wwids.c     |  19 +-
 libmultipath/wwids.h     |   6 +-
 tests/Makefile           |   5 +-
 tests/cmocka-compat.h    |   1 +
 tests/wwid-unmangle.c    | 375 +++++++++++++++++++++++++++++++++++++++
 7 files changed, 487 insertions(+), 20 deletions(-)
 create mode 100644 tests/wwid-unmangle.c
Signature · 1 line
2.55.0