Date: Tue, 25 Jan 2005 08:01:28 -0700 (MST) From: "M. Warner Losh" <imp@bsdimp.com> To: phk@phk.freebsd.dk Cc: pete@altadena.net Subject: Re: Devd event from GEOM? Message-ID: <20050125.080128.35796224.imp@bsdimp.com> In-Reply-To: <85367.1106664286@critter.freebsd.dk> References: <20050125.073258.94555150.imp@bsdimp.com> <85367.1106664286@critter.freebsd.dk>
next in thread | previous in thread | raw e-mail | index | archive | help
In message: <85367.1106664286@critter.freebsd.dk> "Poul-Henning Kamp" <phk@phk.freebsd.dk> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050125.080128.35796224.imp>