From owner-cvs-src-old@FreeBSD.ORG Wed Feb 24 21:29:47 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 6E7EC106566B for ; Wed, 24 Feb 2010 21:29:47 +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 5D41A8FC1C for ; Wed, 24 Feb 2010 21:29:47 +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 o1OLTlNE041757 for ; Wed, 24 Feb 2010 21:29:47 GMT (envelope-from jhb@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id o1OLTlKx041756 for cvs-src-old@freebsd.org; Wed, 24 Feb 2010 21:29:47 GMT (envelope-from jhb@repoman.freebsd.org) Message-Id: <201002242129.o1OLTlKx041756@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:30 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: RELENG_7 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:47 -0000 jhb 2010-02-24 21:29:30 UTC FreeBSD src repository Modified files: (Branch: RELENG_7) usr.sbin/mptutil mpt_cam.c Log: SVN rev 204287 on 2010-02-24 21:29:30Z 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.4.3 +109 -113 src/usr.sbin/mptutil/mpt_cam.c