libmultipath: simplify dm_get_name()
authorHannes Reinecke <hare@suse.de>
Tue, 20 Jul 2010 08:10:29 +0000 (10:10 +0200)
committerChristophe Varoqui <christophe.varoqui@opensvc.com>
Mon, 26 Jul 2010 08:30:23 +0000 (10:30 +0200)
commit46d5e4357e25e15857e0a151a1c43676e38dbd5b
tree435c308f7901e9a0f798e50d2212b3c80d3e851c
parentc9eeb550d884180e9ed1ea7938e74ac704fd3606
libmultipath: simplify dm_get_name()

dm_get_name() should just return the device-mapper table
name corresponding to a given uuid. Happily the uuid is
another primary key in the device-mapper hash table, so
we can just use it directly and do not have to loop over
all existing tables.

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