From owner-freebsd-usb@FreeBSD.ORG Thu Oct 25 04:34:01 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 E779916A417 for ; Thu, 25 Oct 2007 04:34:01 +0000 (UTC) (envelope-from bu7cher@yandex.ru) Received: from smtp1.yandex.ru (smtp1.yandex.ru [213.180.223.87]) by mx1.freebsd.org (Postfix) with ESMTP id 106B113C48E for ; Thu, 25 Oct 2007 04:34:00 +0000 (UTC) (envelope-from bu7cher@yandex.ru) Received: from ns.kirov.so-cdu.ru ([77.72.136.145]:22245 "EHLO [127.0.0.1]" smtp-auth: "bu7cher" TLS-CIPHER: "DHE-RSA-AES256-SHA keybits 256/256 version TLSv1/SSLv3" TLS-PEER-CN1: ) by mail.yandex.ru with ESMTP id S3487040AbXJYEVJ (ORCPT ); Thu, 25 Oct 2007 08:21:09 +0400 X-Comment: RFC 2476 MSA function at smtp1.yandex.ru logged sender identity as: bu7cher Message-ID: <472019AE.6090009@yandex.ru> Date: Thu, 25 Oct 2007 08:21:02 +0400 From: "Andrey V. Elsukov" User-Agent: Mozilla Thunderbird 1.5 (FreeBSD/20051231) MIME-Version: 1.0 To: freebsd-usb@freebsd.org References: <20071025011507.GA15904@hades.panopticon> In-Reply-To: <20071025011507.GA15904@hades.panopticon> Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: Re: 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 04:34:02 -0000 Dmitry Marakasov wrote: > 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? You can use a nice feature - glabel(8) and create labes for each your flash or camera device. With devfs and devd you can configure special permissions and actions for each device. Not every camera (digital photo) can be detected as an umass storage, but you get an access to this camera with help of graphics/gphoto2. -- WBR, Andrey V. Elsukov