Move to libudev
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest12 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/12 | Use devpath as argument for sysfs functionslibmultipath/ libmultipath/ libmultipath/ +5 more | +45 | 0 replies | |
| 2/12 | multipathd: remove references to sysfs_devicemultipathd/ | +2 | 0 replies | |
| 3/12 | multipathd: use struct path as argument for event processinglibmultipath/ multipathd/ multipathd/ +1 more | +85 | 0 replies | |
| 4/12 | Add global udev reference pointer to configlibmultipath/ libmultipath/ libmultipath/ | +9 | 0 replies | |
| 5/12 | Use udev enumeration during discoverylibmultipath/ | +18 | 0 replies | |
| 6/12 | use struct udev_device during discoverylibmultipath/ | +18 | 0 replies | |
| 7/12 | Remove stale variable in sysfs_attr_get_valuelibmultipath/ | +1 | 0 replies | |
| 8/12 | Use struct udev_device instead of sysdevlibmultipath/ libmultipath/ libmultipath/ +13 more | +196 | 0 replies | |
| 9/12 | discovery: Fixup cciss discoverylibmultipath/ | +47 | 0 replies | |
| 10/12 | Use udev attribute instead of getuid_callout()libmultipath/ libmultipath/ libmultipath/ +7 more | +91 | 0 replies | |
| 11/12 | Use udev devices during discoverylibmultipath/ | +89 | 0 replies | |
| 12/12 | Remove all references to hand-craftes sysfs codelibmpathpersist/ libmultipath/ libmultipath/ +7 more | +50 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 00/12] 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.
Hannes Reinecke (12):
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
libmpathpersist/mpath_persist.c | 5 - libmultipath/config.c | 28 +- libmultipath/config.h | 10 +- libmultipath/defaults.h | 2 +- libmultipath/dict.c | 55 +--- libmultipath/discovery.c | 677 +++++++++++++++++---------------------- libmultipath/discovery.h | 8 +- libmultipath/hwtable.c | 102 ++----- libmultipath/propsel.c | 24 +- libmultipath/structs.c | 6 + libmultipath/structs.h | 10 +- libmultipath/structs_vec.c | 13 +- libmultipath/sysfs.c | 384 +++-------------------- libmultipath/sysfs.h | 22 +-- libmultipath/uevent.c | 16 +- libmultipath/uevent.h | 1 + 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 | 133 +++----- multipathd/main.h | 4 +- 24 files changed, 550 insertions(+), 1044 deletions(-)
Signature · 1 line
1.7.3.4