Rework sysfs device handling in multipathd
authorHannes Reinecke <hare@suse.de>
Thu, 20 Nov 2008 11:14:42 +0000 (12:14 +0100)
committerHannes Reinecke <hare@suse.de>
Tue, 17 May 2011 12:14:11 +0000 (14:14 +0200)
commit5a947826b5f3cd4c0437ee6cacf7557cd6f5b410
tree98ae469431cfbf5816d7158bc44dfcdb7932275a
parentd5256f71b32305e36cbabef6ba4243b175ef2785
Rework sysfs device handling in multipathd

Relying on sysfs devices has the disadvantage that the device
might already been gone by the time we look at it. And we don't
actually need it for eg device-mapper events as we can get all
required information via the device-mapper ioctl.
So only access sysfs if we absolutely have to and try to get
the information from other places if possible.

Signed-off-by: Hannes Reinecke <hare@suse.de>
libmultipath/devmapper.c
libmultipath/devmapper.h
libmultipath/structs_vec.c
libmultipath/structs_vec.h
libmultipath/uevent.c
libmultipath/uevent.h
multipathd/cli_handlers.c
multipathd/main.c
multipathd/main.h