All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/4] multipath-tools: unmangle WWIDs if necessary
@ 2026-09-25 21:40 mwilck
  2026-09-25 21:40 ` [PATCH 1/4] libmultipath: constify functions in wwid.c mwilck
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: mwilck @ 2026-09-25 21:40 UTC (permalink / raw)
  To: Christophe Varoqui, Benjamin Marzinski, dm-devel; +Cc: Martin Wilck

From: Martin Wilck <mwilck@suse.com>

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. Patch 4 is an optimization that occured
to me while looking at wwids.c.

Comments and questions welcome!

Martin

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

 libmultipath/discovery.c | 103 ++++++++++-
 libmultipath/discovery.h |   1 +
 libmultipath/wwids.c     |  82 ++++-----
 libmultipath/wwids.h     |   6 +-
 tests/Makefile           |   5 +-
 tests/cmocka-compat.h    |   1 +
 tests/wwid-unmangle.c    | 375 +++++++++++++++++++++++++++++++++++++++
 7 files changed, 523 insertions(+), 50 deletions(-)
 create mode 100644 tests/wwid-unmangle.c

-- 
2.55.0


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2026-10-01  0:07 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-25 21:40 [PATCH 0/4] multipath-tools: unmangle WWIDs if necessary mwilck
2026-09-25 21:40 ` [PATCH 1/4] libmultipath: constify functions in wwid.c mwilck
2026-09-30 23:36   ` Benjamin Marzinski
2026-09-25 21:40 ` [PATCH 2/4] libmultipath: unmangle WWIDs if necessary mwilck
2026-10-01  0:04   ` Benjamin Marzinski
2026-09-25 21:40 ` [PATCH 3/4] multipath-tools tests: add test for WWID unmangling mwilck
2026-10-01  0:05   ` Benjamin Marzinski
2026-09-25 21:40 ` [PATCH 4/4] libmultipath: use mmap in lookup_wwid() mwilck
2026-10-01  0:06   ` Benjamin Marzinski

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.