add library to check if device is a valid path
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v3 Latest4 patches 4 repliesIn review
- v2 RFC3 patches 9 repliesSuperseded
- v13 patches 6 repliesSuperseded
Changes in v3 from the cover letter
---------------------
0001: rebased on top of Martin's latest patches, fixed some small bugs
and added documentation to mpath_valid.h
0002: New
0004: was 0003. Untangled the logic, at Martin's suggestion.
Patches in v3 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | multipath: add libmpathvalid libraryMakefile libmpathvalid/ libmpathvalid/ +3 more | +414 | 0 replies | |
| 2/4 | multipath-tools tests: and unit tests for libmpathvalidMakefile.inc tests/ tests/ | +472 | 0 replies | |
| 3/4 | libmultipath: add uid failback for dasd deviceslibmultipath/ libmultipath/ | +37 | 0 replies | |
| 4/4 | libmultipath: change log level for null uid_attributelibmultipath/ | +6 | 1 reply |
Reviews trailers per patch
2 of 4 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.
| Patch | Martin Wilck |
|---|---|
| Series | R-b |
| 1/4 | |
| 2/4 | |
| 3/4 | R-b |
| 4/4 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [dm-devel] [PATCH v3 0/4] add library to check if device is a valid path
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
The seconds patch adds unit tests for this library. The third patch adds get_uid fallback code for dasd devices. The fourth patch just changes the get_uid log level for devices configured with uid_attribute "". This is because it is currently necessary to configure multipath with
overrides {
uid_attribute ""
}
to claim 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.
changes from v1 to v2
---------------------
0001: This patch is now rebased on top of, and makes use of Martin's patches that provide a default *_multipath_config, udev, and logsink. Because of this, mpathvalid_init() now has a parameter used to set logsink. There is also a new API function, mpathvalid_reload_config().
0003: This is completely new, since Martin pointed out that adding a new config option to always use the fallback getuid code was unnecessary. It just makes a uid_attribute of "" log at normal levels.
changes from v2 to v3
---------------------
0001: rebased on top of Martin's latest patches, fixed some small bugs
and added documentation to mpath_valid.h
0002: New
0004: was 0003. Untangled the logic, at Martin's suggestion.
Benjamin Marzinski (4):
multipath: add libmpathvalid library multipath-tools tests: and unit tests for libmpathvalid
libmultipath: add uid failback for dasd devices
libmultipath: change log level for null uid_attribute
Makefile | 3 +- Makefile.inc | 1 + libmpathvalid/Makefile | 39 +++ libmpathvalid/libmpathvalid.version | 10 + libmpathvalid/mpath_valid.c | 202 ++++++++++++ libmpathvalid/mpath_valid.h | 155 +++++++++ libmultipath/defaults.h | 1 + libmultipath/discovery.c | 45 ++- libmultipath/libmultipath.version | 6 + tests/Makefile | 5 +- tests/mpathvalid.c | 467 ++++++++++++++++++++++++++++ 11 files changed, 929 insertions(+), 5 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 create mode 100644 tests/mpathvalid.c
Signature · 6 lines
2.17.2 -- dm-devel mailing list [email protected] https://www.redhat.com/mailman/listinfo/dm-devel