multipath: better check for daemon mode
authorBenjamin Marzinski <bmarzins@redhat.com>
Tue, 11 Oct 2011 03:16:51 +0000 (22:16 -0500)
committerChristophe Varoqui <christophe.varoqui@opensvc.com>
Tue, 11 Oct 2011 04:47:51 +0000 (06:47 +0200)
commit0bfc3d2dedd1dab3b433388aa9724778568ad2c9
tree00d5af3233aa69968eced6fdc686ccb4afdc6b6f
parent05e94c70b755eddb1a8c0aa36fca80d692267846
multipath: better check for daemon mode

With the existing check, if a multipath device gets created with a
blacklisted path (because, for instance, the path was unblacklisted,
but multipathd was not reconfigured), multipathd will crash.  This is
because multipathd will add the path when it adds the multipath device,
but it won't have all the necessary information to use the path. The
new check makes sure multipathd won't add blacklisted paths, simply
because they are part of a multipath device.

Signed-off-by: Benjamin Marzinski <bmarzins@redhat.com>
libmultipath/dmparser.c