Date: Wed, 24 Feb 2010 21:29:45 +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: <201002242130.o1OLU8rj041837@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
jhb 2010-02-24 21:29:45 UTC
FreeBSD src repository
Modified files: (Branch: RELENG_7_3)
usr.sbin/mptutil mpt_cam.c
Log:
SVN rev 204288 on 2010-02-24 21:29:45Z by jhb
MFC 204090:
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 buses and perphierals.
Approved by: re (kib)
Revision Changes Path
1.1.4.2.2.2 +109 -113 src/usr.sbin/mptutil/mpt_cam.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201002242130.o1OLU8rj041837>
