From owner-freebsd-usb@FreeBSD.ORG Wed May 6 16:39:17 2009 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 D45D7106564A for ; Wed, 6 May 2009 16:39:17 +0000 (UTC) (envelope-from avg@icyb.net.ua) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id 133D28FC1C for ; Wed, 6 May 2009 16:39:16 +0000 (UTC) (envelope-from avg@icyb.net.ua) Received: from odyssey.starpoint.kiev.ua (alpha-e.starpoint.kiev.ua [212.40.38.101]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id TAA14681; Wed, 06 May 2009 19:39:12 +0300 (EEST) (envelope-from avg@icyb.net.ua) Message-ID: <4A01BD2F.40409@icyb.net.ua> Date: Wed, 06 May 2009 19:39:11 +0300 From: Andriy Gapon User-Agent: Thunderbird 2.0.0.21 (X11/20090406) MIME-Version: 1.0 To: Julian Stacey References: <200905061528.n46FRumO004975@fire.js.berklix.net> In-Reply-To: <200905061528.n46FRumO004975@fire.js.berklix.net> X-Enigmail-Version: 0.95.7 Content-Type: text/plain; charset=KOI8-U Content-Transfer-Encoding: 7bit Cc: freebsd-usb@freebsd.org Subject: Re: devd automatic conversion of umass[0-9] to da[0-9] 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: Wed, 06 May 2009 16:39:18 -0000 on 06/05/2009 18:27 Julian Stacey said the following: > Hi folks, > Config below works for a number of memory sticks simultaneously; > But if one already has a dvd burner plugged in, > then it fails as devd sees (in case of a first memory stick) a new umass1. > Although /dev/da0* get created, devd tries to access non existant da1*. > Any ideas how to improve this ? ( Using 7.1-RELEASE ) You could try to watch for cdev events (i.e. creation of daX device nodes) instead of driver events. But I am not sure if cdev events are in 7.1, they are definitely in 7.2: notify 1000 { match "system" "DEVFS"; match "subsystem" "CDEV"; match "type" "CREATE"; match "cdev" "^da[0-9]+$"; action "echo 't120o3l32 b>c+f+16' > /dev/speaker"; }; -- Andriy Gapon