Date: Fri, 19 Feb 2010 15:16:00 +0000 (UTC) From: John Baldwin <jhb@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/usr.sbin/mptutil mpt_cam.c Message-ID: <201002191516.o1JFGKW9014439@repoman.freebsd.org>
index | next in thread | raw e-mail
jhb 2010-02-19 15:16:00 UTC
FreeBSD src repository
Modified files:
usr.sbin/mptutil mpt_cam.c
Log:
SVN rev 204090 on 2010-02-19 15:16:00Z by jhb
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
Revision Changes Path
1.2 +109 -113 src/usr.sbin/mptutil/mpt_cam.c
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201002191516.o1JFGKW9014439>
