libmultipath: correct path count in setup_map()
authorHannes Reinecke <hare@suse.de>
Fri, 18 Feb 2011 07:25:59 +0000 (08:25 +0100)
committerHannes Reinecke <hare@suse.de>
Tue, 3 May 2011 11:45:22 +0000 (13:45 +0200)
commitc919aea24b617f239d1a8d973b2f4593a6948bfa
tree38715636246e18863cece68a0ddf6593f6d48ac4
parent44f79b5ba75300afd8c86efa2c7170813c4288d1
libmultipath: correct path count in setup_map()

We should be counting both, UP and GHOST paths when counting the
number of available paths. Otherwise the count might become
negative and multipath would never switch into recovery mode.

References: bz#677821

Signed-off-by: Benjamin Marzinski <bmarzins@redhat.com>
Signed-off-by: Hannes Reinecke <hare@suse.de>
libmultipath/configure.c