Devd event from GEOM?
M. Warner Losh
imp at bsdimp.com
Tue Jan 25 07:02:09 PST 2005
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?
Warner
More information about the freebsd-current
mailing list