From owner-freebsd-usb@FreeBSD.ORG Thu Oct 25 05:57:08 2007 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3B6BE16A418 for ; Thu, 25 Oct 2007 05:57:08 +0000 (UTC) (envelope-from jmg@hydrogen.funkthat.com) Received: from hydrogen.funkthat.com (gate.funkthat.com [69.17.45.168]) by mx1.freebsd.org (Postfix) with ESMTP id 0651213C4A5 for ; Thu, 25 Oct 2007 05:57:07 +0000 (UTC) (envelope-from jmg@hydrogen.funkthat.com) Received: from hydrogen.funkthat.com (w0s5lg6v68txpym8@localhost.funkthat.com [127.0.0.1]) by hydrogen.funkthat.com (8.13.6/8.13.3) with ESMTP id l9P5gFTM005184 for ; Wed, 24 Oct 2007 22:42:15 -0700 (PDT) (envelope-from jmg@hydrogen.funkthat.com) Received: (from jmg@localhost) by hydrogen.funkthat.com (8.13.6/8.13.3/Submit) id l9P5gERW005183 for freebsd-usb@freebsd.org; Wed, 24 Oct 2007 22:42:14 -0700 (PDT) (envelope-from jmg) Date: Wed, 24 Oct 2007 22:42:14 -0700 From: John-Mark Gurney To: freebsd-usb@freebsd.org Message-ID: <20071025054214.GF39759@funkthat.com> Mail-Followup-To: freebsd-usb@freebsd.org References: <20071025011507.GA15904@hades.panopticon> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20071025011507.GA15904@hades.panopticon> User-Agent: Mutt/1.4.2.1i X-Operating-System: FreeBSD 5.4-RELEASE-p6 i386 X-Files: The truth is out there X-URL: http://resnet.uoregon.edu/~gurney_j/ X-Resume: http://resnet.uoregon.edu/~gurney_j/resume.html X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (hydrogen.funkthat.com [127.0.0.1]); Wed, 24 Oct 2007 22:42:15 -0700 (PDT) Subject: Re: how to distinguish multiple umass devices? X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: John-Mark Gurney List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Oct 2007 05:57:08 -0000 Dmitry Marakasov wrote this message on Thu, Oct 25, 2007 at 05:15 +0400: > I have multiple umass devices (flash key, player and photo camera), and > I want to distinguish their devices in some way. > > The best thing would be to have /dev/flash, /dev/camera etc, as in this > case I'll distinguish thoughput graphs on GKrellM system monitor. But I > don't think it's possible, so I need a way to at least create > corresponding symlinks in /dev. As I understand, devd is my savior, but > there's one problem that bugs me: devd sees umass[012], but it doesn't > know anything about da[012]. Is there guarantee that umassX matches daX, > or is it possible to get da* device from devd on umass attach? Why not try geom_label? Things like fat fs's will appear by their volume in /dev/msdosfs/... check out glabel(8) for more info... -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not."