From owner-cvs-src-old@FreeBSD.ORG Fri Feb 19 15:16:20 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 7D06B1065694 for ; Fri, 19 Feb 2010 15:16:20 +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 6BEA58FC15 for ; Fri, 19 Feb 2010 15:16:20 +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 o1JFGKdu014440 for ; Fri, 19 Feb 2010 15:16:20 GMT (envelope-from jhb@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id o1JFGKW9014439 for cvs-src-old@freebsd.org; Fri, 19 Feb 2010 15:16:20 GMT (envelope-from jhb@repoman.freebsd.org) Message-Id: <201002191516.o1JFGKW9014439@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to jhb@repoman.freebsd.org using -f From: John Baldwin Date: Fri, 19 Feb 2010 15:16:00 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD 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: Fri, 19 Feb 2010 15:16:20 -0000 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