From owner-freebsd-usb@FreeBSD.ORG Thu Oct 25 01:37:43 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 7C7A616A41A for ; Thu, 25 Oct 2007 01:37:43 +0000 (UTC) (envelope-from amdmi3@amdmi3.ru) Received: from cp65.agava.net (cp65.agava.net [89.108.66.215]) by mx1.freebsd.org (Postfix) with ESMTP id 0AF1513C4B8 for ; Thu, 25 Oct 2007 01:37:42 +0000 (UTC) (envelope-from amdmi3@amdmi3.ru) Received: from [213.148.20.85] (helo=nexii.panopticon) by cp65.agava.net with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.44 (FreeBSD)) id 1IkrHw-000IJq-1t for freebsd-usb@freebsd.org; Thu, 25 Oct 2007 05:13:32 +0400 Received: from hades.panopticon (hades.panopticon [192.168.0.2]) by nexii.panopticon (Postfix) with ESMTP id A3AFD17045 for ; Thu, 25 Oct 2007 05:14:23 +0400 (MSD) Received: by hades.panopticon (Postfix, from userid 1000) id B0E394087; Thu, 25 Oct 2007 05:15:07 +0400 (MSD) Date: Thu, 25 Oct 2007 05:15:07 +0400 From: Dmitry Marakasov To: freebsd-usb@freebsd.org Message-ID: <20071025011507.GA15904@hades.panopticon> Mail-Followup-To: freebsd-usb@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline User-Agent: Mutt/1.5.16 (2007-06-09) X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cp65.agava.net X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [0 0] / [0 0] X-AntiAbuse: Sender Address Domain - amdmi3.ru X-Source: X-Source-Args: X-Source-Dir: Subject: how to distinguish multiple umass devices? X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Oct 2007 01:37:43 -0000 Hi! 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? -- Dmitry A. Marakasov | jabber: amdmi3@jabber.ru amdmi3@amdmi3.ru | http://www.amdmi3.ru