From owner-freebsd-stable@FreeBSD.ORG Fri Jan 22 17:21:27 2010 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6651A106566C for ; Fri, 22 Jan 2010 17:21:27 +0000 (UTC) (envelope-from dan@dan.emsphone.com) Received: from email1.allantgroup.com (email1.emsphone.com [199.67.51.115]) by mx1.freebsd.org (Postfix) with ESMTP id 1DB0B8FC08 for ; Fri, 22 Jan 2010 17:21:26 +0000 (UTC) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by email1.allantgroup.com (8.14.0/8.14.0) with ESMTP id o0MHLPvY049462 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Fri, 22 Jan 2010 11:21:26 -0600 (CST) (envelope-from dan@dan.emsphone.com) Received: from dan.emsphone.com (smmsp@localhost [127.0.0.1]) by dan.emsphone.com (8.14.4/8.14.3) with ESMTP id o0MHLOL5090765 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Fri, 22 Jan 2010 11:21:25 -0600 (CST) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.14.4/8.14.3/Submit) id o0MHLOWK090763; Fri, 22 Jan 2010 11:21:24 -0600 (CST) (envelope-from dan) Date: Fri, 22 Jan 2010 11:21:24 -0600 From: Dan Nelson To: Dan Langille Message-ID: <20100122172124.GF50360@dan.emsphone.com> References: <4B58FE1F.5020402@langille.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4B58FE1F.5020402@langille.org> X-OS: FreeBSD 7.2-STABLE User-Agent: Mutt/1.5.20 (2009-06-14) X-Virus-Scanned: clamav-milter 0.95.3 at email1.allantgroup.com X-Virus-Status: Clean X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0.2 (email1.allantgroup.com [199.67.51.78]); Fri, 22 Jan 2010 11:21:26 -0600 (CST) X-Scanned-By: MIMEDefang 2.45 Cc: FreeBSD Stable Subject: Re: do I want ch0 or pass1? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Jan 2010 17:21:27 -0000 In the last episode (Jan 21), Dan Langille said: > Please CC me on replies. > > I'm running into issues with hard-coding some devices (see recent post > titled 'device.hints isn't setting what I want'). > > Associated with this issue is confusion over whether I want to use ch0 > or pass1. I have these devices: > > at scbus1 target 0 lun 0 (ch0,pass1) > at scbus1 target 5 lun 0 (sa1,pass2) > > My understanding: chio(1) will with ch0, whereas mtx(1) will work with > pass1. Is this correct? More information/elaboration will help I'm sure. > > Why do I ask? I can get the tape changer and tape drive hardwired to ch0 > and sa1 respectively. I cannot [yet] do the same with pass1. You can try wiring them down the same way you wire down regular devices, but if they're created sequentially in probe order, that won't work. Ideally, mtx should use cam_open_spec_device() which, when given a device name, will automatically open the matching pass device. -- Dan Nelson dnelson@allantgroup.com