Devd event from GEOM?
Bernd Walter
ticso at cicely12.cicely.de
Mon Jan 24 04:32:58 PST 2005
On Sun, Jan 23, 2005 at 09:57:03PM -0800, Pete Carah wrote:
> Geom doesn't feed node-creations to devd in 5.3. This would be VERY useful
> for letting ordinary non-programmer users access pen drives, among
> other things (floppies come to mind too...).
> (or mount e.g. a pen drive as part of an authentication system where no-one is
> yet logged in, so can't manually mount...)
>
> umass0 comes in to devd, but this isn't useful for use in "mount". One
> needs the disk device nodes. I suppose one *could* parse dmesg for
> the info (or maybe sysctl) but that smacks of a serious kluge. (not to
> mention that the slice table isn't represented in dmesg anyhow, and
> practically nothing is in sysctl...)
As a workaround you can parse the camcontrol devlist -v output:
scbus2 on umass-sim1 bus 1:
<General Flash Disk Drive 2.05> at scbus2 target 0 lun 0 (pass1,da0)
<General Flash Disk Drive 2.05> at scbus2 target 0 lun 1 (pass2,da1)
<General Flash Disk Drive 2.05> at scbus2 target 0 lun 2 (pass3,da2)
umass-sim1 is the sim from umass1.
--
B.Walter BWCT http://www.bwct.de
bernd at bwct.de info at bwct.de
More information about the freebsd-current
mailing list