Skip to content

multipath: path validation library prep work

Benjamin Marzinski dm-devel 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest6 patches 1 replyIn review
  2. v26 patches 2 repliesSuperseded
  3. v16 patches 9 repliesSuperseded

Changes in v3 from the cover letter

rebased patches on top of Martin's previous patch sets

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6libmultipath: make libmp_dm_init optionallibmultipath/devmapper.c libmultipath/devmapper.h+15 -50 replies
2/6libmultipath: make sysfs_is_multipathed able to return wwidlibmultipath/sysfs.c libmultipath/sysfs.h multipath/main.c+24 -90 replies
3/6multipath: centralize validation codelibmultipath/Makefile libmultipath/devmapper.c libmultipath/devmapper.h +5 more+343 -1950 replies
4/6Unit tests for is_path_valid()tests/Makefile tests/valid.c+489 -10 replies
5/6libmultipath: simplify failed wwid codelibmultipath/wwids.c+56 -750 replies
6/6libmultipath: use atomic linkat() in mark_failed_wwid()libmultipath/wwids.c+29 -130 replies

Reviews trailers per patch

5 of 6 patches have a Reviewed-by or Acked-by.

PatchMartin Wilck
1/6R-b
2/6R-b
3/6R-b
4/6R-b
5/6R-b
6/6

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

Read the v3 thread

Cover letter [PATCH v3 0/6] multipath: path validation library prep work

I've been playing around with the SID code more and I've decided to hold off on submitting the library until I have it working with the SID multipath module better. Instead, I've pulled out the common code that multipath -u/-c and the library can use, and put it into libmultipath.

I've also removed some of the ordering differences between the existing code and my new code. Right now, the only difference is that if a path is currently multipathed, it will always be claimed as a valid path.

Patches 0001 & 0002 are the same as in my "RFC PATCH v2" set, and patch 0005 is the same as my "libmultipath: simplify failed wwid code" patch.

Only patches 0003 and 0004 haven't been posted before.

Changes from v1:
0003: Minor fixes suggested by Martin Wilck
0004: Fixed typo, added tests for filter_property() and switched some
tests to pass the check_multipathd code in various ways, instead of skipping it, as suggested by Martin Wilck

Changes from v2:
rebased patches on top of Martin's previous patch sets

Benjamin Marzinski (5):
libmultipath: make libmp_dm_init optional
libmultipath: make sysfs_is_multipathed able to return wwid
multipath: centralize validation code
Unit tests for is_path_valid()
libmultipath: simplify failed wwid code

Martin Wilck (1):
libmultipath: use atomic linkat() in mark_failed_wwid()

 libmultipath/Makefile    |   2 +-
 libmultipath/devmapper.c |  62 ++++-
 libmultipath/devmapper.h |   4 +-
 libmultipath/structs.h   |  24 +-
 libmultipath/sysfs.c     |  24 +-
 libmultipath/sysfs.h     |   2 +-
 libmultipath/valid.c     | 118 ++++++++++
 libmultipath/valid.h     |  42 ++++
 libmultipath/wwids.c     | 165 +++++++------
 multipath/main.c         | 295 ++++++++++--------------
 tests/Makefile           |   4 +-
 tests/valid.c            | 486 +++++++++++++++++++++++++++++++++++++++
 12 files changed, 943 insertions(+), 285 deletions(-)
 create mode 100644 libmultipath/valid.c
 create mode 100644 libmultipath/valid.h
 create mode 100644 tests/valid.c
Signature · 1 line
2.17.2