From owner-freebsd-current@FreeBSD.ORG Tue Jan 25 14:39:02 2005 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 19DEA16A4CE; Tue, 25 Jan 2005 14:39:02 +0000 (GMT) Received: from creme-brulee.marcuscom.com (creme-brulee.marcuscom.com [24.172.16.118]) by mx1.FreeBSD.org (Postfix) with ESMTP id DCA4443D45; Tue, 25 Jan 2005 14:39:00 +0000 (GMT) (envelope-from marcus@marcuscom.com) Received: from shumai.marcuscom.com (shumai.marcuscom.com [192.168.1.4]) j0PEdAxR070502; Tue, 25 Jan 2005 09:39:10 -0500 (EST) (envelope-from marcus@marcuscom.com) From: Joe Marcus Clarke To: Robert Watson In-Reply-To: References: Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-DlUiPuzXOm8n5qXznfcE" Organization: MarcusCom, Inc. Date: Tue, 25 Jan 2005 09:38:25 -0500 Message-Id: <1106663905.35846.10.camel@shumai.marcuscom.com> Mime-Version: 1.0 X-Mailer: Evolution 2.0.3 FreeBSD GNOME Team Port cc: pete@altadena.net cc: current@freebsd.org cc: "M. Warner Losh" Subject: Re: Devd event from GEOM? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Jan 2005 14:39:02 -0000 --=-DlUiPuzXOm8n5qXznfcE Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Tue, 2005-01-25 at 09:39 +0000, Robert Watson wrote: > On Mon, 24 Jan 2005, M. Warner Losh wrote: >=20 > > : Since they constitute different "things" with quite different managem= ent > > : properties. This also provides additional contextual information: ra= ther > > : than devd having to guess what type of object a device node is using = name > > : matching, by learning about it through geom or the network stack, it = knows > > : what kind it is up front in a strong way.=20 > >=20 > > While I tend to agree, I do think that GEOM is the wrong layer to > > announce things from. The more correct layer would be /dev, since you > > are again assuming that a GEOM that's created with name foo is > > accessible via /dev/foo.=20 >=20 > So suppose I'm listening to a devd socket to try and identify storage > devices arriving that I can automount. How do I know which device > announcements are for storage devices? And how would I map those devices to a bus? Speaking with Linux HAL in mind, I would like to see storage devices added to devinfo. It would be great, IMHO, to see da0 attached to uhub2 on usb2 on ehci2 when walking devinfo. As was previously mentioned, the only way to do this currently is to walk the entire list of cam devices, and string compare busesIt would be great if this was more easily attainable. Joe --=20 PGP Key : http://www.marcuscom.com/pgp.asc --=-DlUiPuzXOm8n5qXznfcE Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iD8DBQBB9lngb2iPiv4Uz4cRAtqqAKCWK8trcjhB2C/b8kaORJRZHSgd/gCeI+vU AmVu9RNkYon/GPcLJkCU5zo= =vK8V -----END PGP SIGNATURE----- --=-DlUiPuzXOm8n5qXznfcE--