Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 24 Jan 2005 13:31:40 +0100
From:      Bernd Walter <ticso@cicely12.cicely.de>
To:        Pete Carah <pete@altadena.net>
Cc:        current@freebsd.org
Subject:   Re: Devd event from GEOM?
Message-ID:  <20050124123140.GY628@cicely12.cicely.de>
In-Reply-To: <20050124055703.GA40104@users.altadena.net>
References:  <20050124055703.GA40104@users.altadena.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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@bwct.de                                  info@bwct.de



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050124123140.GY628>