From owner-freebsd-stable@FreeBSD.ORG Tue Feb 28 22:11:49 2012 Return-Path: Delivered-To: freebsd-stable@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4520E106566B for ; Tue, 28 Feb 2012 22:11:49 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id 86EF48FC12 for ; Tue, 28 Feb 2012 22:11:48 +0000 (UTC) Received: from porto.starpoint.kiev.ua (porto-e.starpoint.kiev.ua [212.40.38.100]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id AAA05260; Wed, 29 Feb 2012 00:11:20 +0200 (EET) (envelope-from avg@FreeBSD.org) Received: from localhost ([127.0.0.1]) by porto.starpoint.kiev.ua with esmtp (Exim 4.34 (FreeBSD)) id 1S2VGS-0005xE-7J; Wed, 29 Feb 2012 00:11:20 +0200 Message-ID: <4F4D510E.60206@FreeBSD.org> Date: Wed, 29 Feb 2012 00:11:26 +0200 From: Andriy Gapon User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:10.0.2) Gecko/20120218 Thunderbird/10.0.2 MIME-Version: 1.0 To: vermaden References: <4F3EE186.4020801@gmail.com> <201202181409.08859.hselasky@c2i.net> <20120226203949.H89643@sola.nimnet.asn.au> <20120228162636.Horde.JgORKJjmRSRPTPIsGKfo0uA@webmail.leidinger.net> <4F4D403E.2030703@FreeBSD.org> In-Reply-To: X-Enigmail-Version: 1.3.5 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: fidaj@ukr.net, freebsd-stable@FreeBSD.org, lars.engels@0x20.net, Hans Petter Selasky , Alexander Leidinger , smithi@nimnet.asn.au Subject: Re: devd based AUTOMOUNTER X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Feb 2012 22:11:49 -0000 on 29/02/2012 00:04 vermaden said the following: > "Andriy Gapon" said: >> on 28/02/2012 17:26 Alexander Leidinger said the following: >>> The kernel does not poll for CD changes, and the people guarding the relevant CD >>> code where against something like this in the kernel everytime this came up in >>> the past. So no devd event for this. >> >> My impression was that lately people were asking for it (and nobody actually >> "guarded" the code), but there is no good design on how to do it. > > The mentioned earlier sysctl OID changes whenever CD is in the > drive or not, something changes that ... so adding appreciate > events like "MEDIA INSERTED" and "MEDIA REMOVED" to cd* class > should be enought to handle them and mount/umount the > medium with script like mine with appreciate devd(8) config. I don't think that there is any kernel component that pro-actively changes that value. Most likely you have something like hald running or otherwise tried to access the device before the change was noted. -- Andriy Gapon