From owner-freebsd-stable@FreeBSD.ORG Tue Aug 23 15:52:15 2005 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1039416A41F for ; Tue, 23 Aug 2005 15:52:15 +0000 (GMT) (envelope-from marcus@marcuscom.com) Received: from creme-brulee.marcuscom.com (creme-brulee.marcuscom.com [24.172.16.118]) by mx1.FreeBSD.org (Postfix) with ESMTP id 812EF43D45 for ; Tue, 23 Aug 2005 15:52:14 +0000 (GMT) (envelope-from marcus@marcuscom.com) Received: from shumai.marcuscom.com (shumai.marcuscom.com [192.168.1.4]) by creme-brulee.marcuscom.com (8.13.3/8.13.3) with ESMTP id j7NFqPG7056373; Tue, 23 Aug 2005 11:52:25 -0400 (EDT) (envelope-from marcus@marcuscom.com) From: Joe Marcus Clarke To: Christopher Sean Hilton In-Reply-To: <20050823151842.GA1509@endaba.vindaloo.com> References: <20050823115856.GA854@endaba.vindaloo.com> <20050823151842.GA1509@endaba.vindaloo.com> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-ENAgSmv+Hl55i2sJdRkD" Organization: MarcusCom, Inc. Date: Tue, 23 Aug 2005 11:52:12 -0400 Message-Id: <1124812332.48218.5.camel@shumai.marcuscom.com> Mime-Version: 1.0 X-Mailer: Evolution 2.2.3 FreeBSD GNOME Team Port Cc: freebsd-stable@freebsd.org Subject: Re: Firewire + 5-STABLE + devd? 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: Tue, 23 Aug 2005 15:52:15 -0000 --=-ENAgSmv+Hl55i2sJdRkD Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Tue, 2005-08-23 at 11:18 -0400, Christopher Sean Hilton wrote: > On Tue, Aug 23, 2005 at 07:58:56AM -0400, Christopher Sean Hilton wrote: > > Hi, > >=20 > > I'm trying to get my hotplug utility, which works well with usb > > devices, to work with firewire devices under 5-STABLE. But when I devd > > doesn't seem to do anything with firewire devices and when I cat > > /dev/devctl I get get nothing on firewire. Is there a sysctl I can > > tune or do I need to upgrade to the 6-{RELEASE,CURRENT} branch? > >=20 >=20 > Also, will devd generate events for the attachment of a da[0-9] > device? No. Unfortunately, CAM is not newbus-ified, and thus will not send devctl events. ATA disks will in 6.X and higher, though. > Right now it seems as though it doesn't and that is > problematic. The issue is this. If I attach my usb pendrive to my > computer it gets devices umass0 and da0. But if I attach a firewire > device first then my usb pendrive is umass0, da1. So, if events aren't > generated to say that da1 has become available then I have to figure > out what umass0 is connected to. Yep. You should be able to work backwards through the CAM subsystem to obtain this information. Take a look at the output of ``camcontrol devlist -v''. The information is there, and you can use libcam to get it. Joe >=20 > Thanks in advance > Chris >=20 --=20 PGP Key : http://www.marcuscom.com/pgp.asc --=-ENAgSmv+Hl55i2sJdRkD Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQBDC0Ysb2iPiv4Uz4cRAjx7AJ9kfnl/9ITF5ojeVpZtE0lKx4ye4ACfdDU1 5bggjkaAkPXd3cV+WsMIEGM= =v52Z -----END PGP SIGNATURE----- --=-ENAgSmv+Hl55i2sJdRkD--