From owner-freebsd-hackers@FreeBSD.ORG Thu May 12 16:42:27 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 65E3B16A4CE for ; Thu, 12 May 2005 16:42:27 +0000 (GMT) Received: from srv1.cosmo-project.de (srv1.cosmo-project.de [213.83.6.106]) by mx1.FreeBSD.org (Postfix) with ESMTP id 61B4143D6D for ; Thu, 12 May 2005 16:42:26 +0000 (GMT) (envelope-from ticso@cicely12.cicely.de) Received: from cicely5.cicely.de (cicely5.cicely.de [10.1.1.7]) (authenticated bits=0)j4CGgM4J012150 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK); Thu, 12 May 2005 18:42:24 +0200 (CEST) (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 j4CGfdhs072413 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 12 May 2005 18:41:39 +0200 (CEST) (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 j4CGfc8t073237; Thu, 12 May 2005 18:41:38 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: (from ticso@localhost) by cicely12.cicely.de (8.12.11/8.12.11/Submit) id j4CGfcIW073236; Thu, 12 May 2005 18:41:38 +0200 (CEST) (envelope-from ticso) Date: Thu, 12 May 2005 18:41:38 +0200 From: Bernd Walter To: Juho Vuori Message-ID: <20050512164137.GA72550@cicely12.cicely.de> References: <42836020.4050500@kepa.fi> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <42836020.4050500@kepa.fi> 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=no 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: freebsd-hackers@freebsd.org Subject: Re: Finding out names of mountable devices X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: ticso@cicely.de List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 May 2005 16:42:27 -0000 On Thu, May 12, 2005 at 04:54:40PM +0300, Juho Vuori wrote: > Tried on freebsd-questions without an answer. I suppose this is not > doable, but I'll ask here anyway. > > If I plug in e.g. a USB thumb drive, which becomes, say, umass0. > Normally something like /dev/da0 will also be created and slices of that > device may be mounted. But is there a API for finding out what is the > corresponding block device for umass devices? The device driver writes > that to syslog, but reading logs for something like that is quite clumsy. camcontrol devlist -v The umass-sim instance numer should be identic to the umass one. -- B.Walter BWCT http://www.bwct.de bernd@bwct.de info@bwct.de