Skip to contentSkip to conversation

multipath: enable getting uevents through libudev

PATCH In review Benjamin Marzinski 2 participants 2 messages Apr 10, 2012 – Apr 16, 2012 Device mapper

lore
Share & tools
lore

Benjamin Marzinski

author maintainer
#0 lore raw

PATCH 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
Index: multipath-tools-120403/libmultipath/Makefile
===================================================================
@@ -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

#1 lore raw
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)