Vendor/product comparisons are too broad
authorAnton Blanchard <anton@samba.org>
Wed, 9 Nov 2011 22:48:12 +0000 (23:48 +0100)
committerChristophe Varoqui <christophe.varoqui@opensvc.com>
Wed, 9 Nov 2011 22:48:12 +0000 (23:48 +0100)
commita7498037efa245be908fd5ae7d65b7ec91be216d
treec3bda29149e1c053e834a349beca2503a60170ec
parent6080ba5eec2d16c848e925ad87a2b736946f2e1c
Vendor/product comparisons are too broad

We have a POWER machine with a broken multipath setup. Analysis shows
that the RDAC driver is being used even though it shouldn't.

The vendor/product is:

IBM,IPR-0   65C61818

There is an entry for this device:

                /* IBM IPR */
                .vendor        = "IBM",
                .product       = "IPR.*",

Unfortunately it looks like a previous entry is matching against this
(since we do a regex match):

            /* IBM DS5000 */
                .vendor        = "IBM",
                .product       = "1818",

There are a number of IBM entries that have this issue. The following
patch ensures we match against the entire product ID.
libmultipath/hwtable.c