dm-devel.redhat.com archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] add library to check if device is a valid path
@ 2020-09-15 21:45 Benjamin Marzinski
  2020-09-15 21:45 ` [PATCH 1/3] multipath: add libmpathvalid library Benjamin Marzinski
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Benjamin Marzinski @ 2020-09-15 21:45 UTC (permalink / raw)
  To: Christophe Varoqui; +Cc: device-mapper development, Martin Wilck

The main part of the this patchset is the first patch, which adds a
new library interface to check whether devices are valid paths. This
was designed for use in the Storage Instantiation Daemon (SID).

https://github.com/sid-project

Hopefully, I've removed all the controvertial bits from the last time I
proposed this library.

The second patch adds get_uid fallback code for dasd devices. The third
patch adds a config option to force multpath to get the device uid from
the fallback methods. This is currently necessary for claiming multipath
devices with SID (instead of using multipath.rules), since SID doesn't
currently get the UID information itself, and it is called by udev
before this information is added to the udev database.

I would like to have this patch included in upstream, since it will make
it easier for people to try out SID, without having to recompile
multipath. However, I understand that there's not much reason to set
this outside of SID. I have a git branch that is Martin's upstream-queue
branch with these patches added, that I people can use if this patch
isn't acceptable.

https://github.com/bmarzins/rh-multipath-tools/tree/sid-patches

Benjamin Marzinski (3):
  multipath: add libmpathvalid library
  libmultipath: add uid failback for dasd devices
  libmultipath: add ignore_udev_uid option

 Makefile                            |   3 +-
 libmpathvalid/Makefile              |  38 +++++++
 libmpathvalid/libmpathvalid.version |  10 ++
 libmpathvalid/mpath_valid.c         | 168 ++++++++++++++++++++++++++++
 libmpathvalid/mpath_valid.h         |  57 ++++++++++
 libmultipath/config.h               |   1 +
 libmultipath/defaults.h             |   1 +
 libmultipath/dict.c                 |   4 +
 libmultipath/discovery.c            |  54 +++++++--
 libmultipath/discovery.h            |   8 +-
 libmultipath/uevent.c               |   2 +-
 multipath/multipath.conf.5          |  13 +++
 multipathd/main.c                   |   7 +-
 13 files changed, 355 insertions(+), 11 deletions(-)
 create mode 100644 libmpathvalid/Makefile
 create mode 100644 libmpathvalid/libmpathvalid.version
 create mode 100644 libmpathvalid/mpath_valid.c
 create mode 100644 libmpathvalid/mpath_valid.h

-- 
2.17.2

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

end of thread, other threads:[~2020-09-18  7:51 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-15 21:45 [PATCH 0/3] add library to check if device is a valid path Benjamin Marzinski
2020-09-15 21:45 ` [PATCH 1/3] multipath: add libmpathvalid library Benjamin Marzinski
2020-09-16 14:18   ` Martin Wilck
2020-09-17 23:52     ` Benjamin Marzinski
2020-09-18  7:51       ` Martin Wilck
2020-09-15 21:45 ` [PATCH 2/3] libmultipath: add uid failback for dasd devices Benjamin Marzinski
2020-09-16 14:28   ` Martin Wilck
2020-09-15 21:45 ` [PATCH 3/3] libmultipath: add ignore_udev_uid option Benjamin Marzinski
2020-09-16 14:46   ` Martin Wilck
2020-09-17 23:36     ` Benjamin Marzinski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).