Move to libudev
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest16 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/16 | Use devpath as argument for sysfs functionslibmultipath/ libmultipath/ libmultipath/ +5 more | +45 | 0 replies | |
| 2/16 | multipathd: remove references to sysfs_devicemultipathd/ | +2 | 0 replies | |
| 3/16 | multipathd: use struct path as argument for event processinglibmultipath/ multipathd/ multipathd/ +1 more | +85 | 0 replies | |
| 4/16 | Add global udev reference pointer to configlibmultipath/ libmultipath/ libmultipath/ | +9 | 0 replies | |
| 5/16 | Use udev enumeration during discoverylibmultipath/ | +18 | 0 replies | |
| 6/16 | use struct udev_device during discoverylibmultipath/ | +18 | 0 replies | |
| 7/16 | Remove stale variable in sysfs_attr_get_valuelibmultipath/ | +1 | 0 replies | |
| 8/16 | Use struct udev_device instead of sysdevlibmultipath/ libmultipath/ libmultipath/ +13 more | +196 | 0 replies | |
| 9/16 | discovery: Fixup cciss discoverylibmultipath/ | +47 | 0 replies | |
| 10/16 | Use udev attribute instead of getuid_callout()libmultipath/ libmultipath/ libmultipath/ +7 more | +91 | 0 replies | |
| 11/16 | Use udev devices during discoverylibmultipath/ | +89 | 0 replies | |
| 12/16 | Remove all references to hand-craftes sysfs codelibmpathpersist/ libmultipath/ libmultipath/ +7 more | +50 | 0 replies | |
| 13/16 | uevent: Remove failback_listen()libmultipath/ | +6 | 0 replies | |
| 14/16 | Simplify uevent processinglibmultipath/ libmultipath/ libmultipath/ +6 more | +117 | 0 replies | |
| 15/16 | Compilation fix for system not providing OOM_SCORE_ADM_MINmultipathd/ | +6 | 0 replies | |
| 16/16 | Fix compilation on older udev versionslibmultipath/ libmultipath/ | +9 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 00/16] Move to libudev
This patchset moves the entire sysfs handling in multipath-tools over to libudev. The hand-crafted sysfs access is removed, as is all the directory traversal through sysfs.
In doing so I've removed the former 'getuid' callout and replaced it by referencing an udev attribute 'uid_attribute'. Per default this is being set to 'ID_SERIAL', as this is an attribute which is being generated by udev for each device.
And handily has the same format as the output of getuid.
I have also included some compability routines for compiling on older versions.
Hannes Reinecke (16):
Use devpath as argument for sysfs functions
multipathd: remove references to sysfs_device
multipathd: use struct path as argument for event processing Add global udev reference pointer to config
Use udev enumeration during discovery
use struct udev_device during discovery
Remove stale variable in sysfs_attr_get_value
Use struct udev_device instead of sysdev
discovery: Fixup cciss discovery
Use udev attribute instead of getuid_callout()
Use udev devices during discovery
Remove all references to hand-craftes sysfs code
uevent: Remove failback_listen()
Simplify uevent processing
Compilation fix for system not providing OOM_SCORE_ADM_MIN Fix compilation on older udev versions
libmpathpersist/mpath_persist.c | 5 - libmultipath/Makefile | 7 + libmultipath/blacklist.c | 28 +- libmultipath/blacklist.h | 8 +- libmultipath/config.c | 28 +- libmultipath/config.h | 10 +- libmultipath/defaults.h | 2 +- libmultipath/dict.c | 55 +--- libmultipath/discovery.c | 685 +++++++++++++++++---------------------- libmultipath/discovery.h | 8 +- libmultipath/hwtable.c | 102 ++----- libmultipath/propsel.c | 24 +- libmultipath/structs.c | 8 +- libmultipath/structs.h | 12 +- libmultipath/structs_vec.c | 13 +- libmultipath/sysfs.c | 384 +++------------------- libmultipath/sysfs.h | 22 +-- libmultipath/uevent.c | 375 +++------------------ libmultipath/uevent.h | 6 +- libmultipath/util.c | 16 +- libmultipath/util.h | 3 +- multipath/main.c | 5 - multipath/multipath.conf.5 | 20 +- multipathd/Makefile | 2 +- multipathd/cli_handlers.c | 48 +++- multipathd/main.c | 214 +++++-------- multipathd/main.h | 8 +- 27 files changed, 671 insertions(+), 1427 deletions(-)
Signature · 1 line
1.7.3.4