[dm-devel] [PATCH 00/12] Move to libudev
Hannes Reinecke
hare at suse.de
Thu Apr 19 09:08:54 UTC 2012
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(-)
--
1.7.3.4
More information about the dm-devel
mailing list