From owner-freebsd-current@FreeBSD.ORG Mon Jan 24 12:32:58 2005 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B715516A4CE for ; Mon, 24 Jan 2005 12:32:58 +0000 (GMT) Received: from srv1.cosmo-project.de (srv1.cosmo-project.de [213.83.6.106]) by mx1.FreeBSD.org (Postfix) with ESMTP id E681043D46 for ; Mon, 24 Jan 2005 12:32:57 +0000 (GMT) (envelope-from ticso@cicely12.cicely.de) Received: from cicely5.cicely.de (cicely5.cicely.de [10.1.1.7]) (authenticated bits=0)j0OCWGHo045765 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK); Mon, 24 Jan 2005 13:32:19 +0100 (CET) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (cicely12.cicely.de [IPv6:3ffe:400:8d0:301::12]) by cicely5.cicely.de (8.12.10/8.12.10) with ESMTP id j0OCVgU3041307 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 24 Jan 2005 13:31:42 +0100 (CET) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (localhost [127.0.0.1]) by cicely12.cicely.de (8.12.11/8.12.11) with ESMTP id j0OCVfjX018993; Mon, 24 Jan 2005 13:31:41 +0100 (CET) (envelope-from ticso@cicely12.cicely.de) Received: (from ticso@localhost) by cicely12.cicely.de (8.12.11/8.12.11/Submit) id j0OCVf7G018992; Mon, 24 Jan 2005 13:31:41 +0100 (CET) (envelope-from ticso) Date: Mon, 24 Jan 2005 13:31:40 +0100 From: Bernd Walter To: Pete Carah Message-ID: <20050124123140.GY628@cicely12.cicely.de> References: <20050124055703.GA40104@users.altadena.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050124055703.GA40104@users.altadena.net> X-Operating-System: FreeBSD cicely12.cicely.de 5.2-CURRENT alpha User-Agent: Mutt/1.5.6i X-Spam-Status: No, hits=-4.9 required=3.0 tests=BAYES_00 autolearn=ham version=2.64 X-Spam-Report: * -4.9 BAYES_00 BODY: Bayesian spam probability is 0 to 1% * [score: 0.0000] X-Spam-Checker-Version: SpamAssassin 2.64 (2004-01-11) on cicely12.cicely.de cc: current@freebsd.org Subject: Re: Devd event from GEOM? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: ticso@cicely.de List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 Jan 2005 12:32:58 -0000 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: at scbus2 target 0 lun 0 (pass1,da0) at scbus2 target 0 lun 1 (pass2,da1) 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