From owner-freebsd-current@FreeBSD.ORG Tue Jan 25 09:40:26 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 E0AE516A4CE for ; Tue, 25 Jan 2005 09:40:26 +0000 (GMT) Received: from fledge.watson.org (fledge.watson.org [204.156.12.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 892D343D46 for ; Tue, 25 Jan 2005 09:40:26 +0000 (GMT) (envelope-from robert@fledge.watson.org) Received: from fledge.watson.org (localhost [127.0.0.1]) by fledge.watson.org (8.13.1/8.13.1) with ESMTP id j0P9dtru097656; Tue, 25 Jan 2005 04:39:55 -0500 (EST) (envelope-from robert@fledge.watson.org) Received: from localhost (robert@localhost)j0P9dsZo097653; Tue, 25 Jan 2005 09:39:54 GMT (envelope-from robert@fledge.watson.org) Date: Tue, 25 Jan 2005 09:39:54 +0000 (GMT) From: Robert Watson X-Sender: robert@fledge.watson.org To: "M. Warner Losh" In-Reply-To: <20050124.204644.32725683.imp@bsdimp.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: current@freebsd.org cc: pete@altadena.net 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 09:40:27 -0000 On Mon, 24 Jan 2005, M. Warner Losh wrote: > : Since they constitute different "things" with quite different management > : properties. This also provides additional contextual information: rather > : 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. > > 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. 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? Robert N M Watson