From owner-cvs-src-old@FreeBSD.ORG Wed Feb 24 21:29:41 2010 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 98AE5106567C for ; Wed, 24 Feb 2010 21:29:41 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 8746E8FC16 for ; Wed, 24 Feb 2010 21:29:41 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id o1OLTff5041737 for ; Wed, 24 Feb 2010 21:29:41 GMT (envelope-from jhb@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id o1OLTfHH041736 for cvs-src-old@freebsd.org; Wed, 24 Feb 2010 21:29:41 GMT (envelope-from jhb@repoman.freebsd.org) Message-Id: <201002242129.o1OLTfHH041736@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to jhb@repoman.freebsd.org using -f From: John Baldwin Date: Wed, 24 Feb 2010 21:29:18 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: RELENG_8 Subject: cvs commit: src/usr.sbin/mptutil mpt_cam.c X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Feb 2010 21:29:41 -0000 jhb 2010-02-24 21:29:18 UTC FreeBSD src repository Modified files: (Branch: RELENG_8) usr.sbin/mptutil mpt_cam.c Log: SVN rev 204286 on 2010-02-24 21:29:18Z 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. Revision Changes Path 1.1.2.3 +109 -113 src/usr.sbin/mptutil/mpt_cam.c