In message: <85367.1106664286_at_critter.freebsd.dk> "Poul-Henning Kamp" <phk_at_phk.freebsd.dk> writes: : In message <20050125.073258.94555150.imp_at_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? WarnerReceived on Tue Jan 25 2005 - 14:02:09 UTC
This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:26 UTC