HomeFreeBSD

Fix mptutil's method for locating disk devices attached to a specific

Description

Fix mptutil's method for locating disk devices attached to a specific
mpt(4) controller. Previously, the code assumed that multiple match
patterns provided to an XPT_DEV_MATCH request were ANDed together.
Instead, they are ORed. Instead, to match peripherals for a specific bus,
one query needs to be performed to lookup the path ID of the bus. A second
query can then be performed matching peripherals attached to that path.
This approach also makes the code a bit cleaner as the returned match
results do not mix bus and perphierals.

Reported by: several folks
MFC after: 1 week

Details

Provenance
jhbAuthored on Feb 19 2010, 3:16 PM
Parents
rGfb7c88e695d5: Use the cached value within comparison.
Branches
Unknown
Tags
Unknown

Event Timeline