From owner-freebsd-current@FreeBSD.ORG Tue Jan 25 15:02:09 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 A179316A4D1; Tue, 25 Jan 2005 15:02:09 +0000 (GMT) Received: from harmony.village.org (rover.village.org [168.103.84.182]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3CE9343D2F; Tue, 25 Jan 2005 15:02:09 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from localhost (warner@rover2.village.org [10.0.0.1]) by harmony.village.org (8.13.1/8.13.1) with ESMTP id j0PF07R3051776; Tue, 25 Jan 2005 08:00:08 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Tue, 25 Jan 2005 08:01:28 -0700 (MST) Message-Id: <20050125.080128.35796224.imp@bsdimp.com> To: phk@phk.freebsd.dk From: "M. Warner Losh" In-Reply-To: <85367.1106664286@critter.freebsd.dk> References: <20050125.073258.94555150.imp@bsdimp.com> <85367.1106664286@critter.freebsd.dk> X-Mailer: Mew version 3.3 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit cc: rwatson@freebsd.org 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 15:02:09 -0000 In message: <85367.1106664286@critter.freebsd.dk> "Poul-Henning Kamp" writes: : In message <20050125.073258.94555150.imp@bsdimp.com>, "M. Warner Losh" writes: : : >: 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? : > : >Hmmmm, once upon a time I'd have said 'stat the device, and you know' : >since those would be block devices.... : : We do actually have an ioctl, FIODTYPE, which will tell you the : "kind" of device, but that requires you to open it (O_NDELAY will : do) And if opening the device has side effects? Warner