libmultipath: rework sysfs handling
authorHannes Reinecke <hare@suse.de>
Thu, 27 May 2010 11:51:23 +0000 (13:51 +0200)
committerHannes Reinecke <hare@suse.de>
Tue, 17 May 2011 10:32:17 +0000 (12:32 +0200)
commite7b54e70bdd1d6020351a2af2e92dfb16724f2cd
tree182ecf9ce77ff7ab03cbe9531da59a4de268f47e
parent96f81469ff993b6063bb8829d9b336590510466d
libmultipath: rework sysfs handling

sysfs_get_device() is called extremely often, so we need
to make sure to have that as streamlined as possible.
So remove all unused fields and use caching as often as
possible.

Signed-off-by: Hannes Reinecke <hare@suse.de>
libmultipath/discovery.c
libmultipath/structs.h
libmultipath/sysfs.c
libmultipath/sysfs.h