libmultipath: resolve hash collisions in pgcmp()
authorHannes Reinecke <hare@suse.de>
Tue, 3 May 2011 11:45:49 +0000 (13:45 +0200)
committerHannes Reinecke <hare@suse.de>
Tue, 3 May 2011 11:45:49 +0000 (13:45 +0200)
commit90773ba8f164285092f347089c95df0055c98de1
treee744f4a38fc6f80c3ef2f69a4180db6491304855
parentc919aea24b617f239d1a8d973b2f4593a6948bfa
libmultipath: resolve hash collisions in pgcmp()

pgcmp() is using a simple xor algorithm for hashing. Main intention
here is to have a quick comparison if two paths are identical.
However, this algorithm is prone to hash collisions, so even if
two hashes match we should still check the individual paths to
avoid collisions.

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