multipath: enable getting uevents through libudev
Benjamin Marzinski
maintainerPATCH v2 1/1 multipath: enable getting uevents through libudev
udev is removing support for RUN+="socket:..." rules. For now, I've kept all the existing uevent code, but I've added a new method for getting the uevent information using libudev that will be tried first.
This version includes more error checking.
--- libmultipath/Makefile | 2 libmultipath/uevent.c | 155 ++++++++++++++++++++++++++++++++++++++++++++------ 2 files changed, 138 insertions(+), 19 deletions(-)
libmultipath/Makefile +1 -1
@@ -7,7 +7,7 @@ include ../Makefile.inc SONAME=0 DEVLIB = libmultipath.so LIBS = $(DEVLIB).$(SONAME) -LIBDEPS = -lpthread -ldl -ldevmapper +LIBDEPS = -lpthread -ldl -ldevmapper -ludev OBJS = memory.o parser.o vector.o devmapper.o callout.o \ hwtable.o blacklist.o util.o dmparser.o config.o \
libmultipath/uevent.c +137 -18
183 lines not on this page · raw message
Quoted 6 lines · Benjamin Marzinski
udev is removing support for RUN+="socket:..." rules. For now, I've kept all the existing uevent code, but I've added a new method for getting the uevent information using libudev that will be tried first.
This version includes more error checking.
Thanks for this. Based on this I did a patchset for replacing the hand-crafted sysfs code in multipath with calls to libudev.
Will be sending out the patches soon.
(Just as a heads up. so as to spare you some effort :-)
Cheers,
Hannes
Signature · 4 lines
Dr. Hannes Reinecke zSeries & Storage [email protected] +49 911 74053 688 SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg GF: J. Hawn, J. Guild, F. Imendörffer, HRB 16746 (AG Nürnberg)