From owner-freebsd-stable@FreeBSD.ORG Tue Feb 28 22:24:06 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 93061106566C; Tue, 28 Feb 2012 22:24:06 +0000 (UTC) (envelope-from vermaden@interia.pl) Received: from smtpo.poczta.interia.pl (smtpo.poczta.interia.pl [217.74.65.207]) by mx1.freebsd.org (Postfix) with ESMTP id 45EFE8FC15; Tue, 28 Feb 2012 22:24:06 +0000 (UTC) Date: Tue, 28 Feb 2012 23:24:05 +0100 From: vermaden To: Andriy Gapon X-Mailer: interia.pl/pf09 In-Reply-To: <4F4D510E.60206@FreeBSD.org> 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> <4F4D510E.60206@FreeBSD.org> X-Originating-IP: 85.89.187.172 Message-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=interia.pl; s=biztos; t=1330467845; bh=PYe118ZXvSihh3opR0V/uh4ICWzBLbXwsshR4lj4hDo=; h=Date:From:Subject:To:Cc:X-Mailer:In-Reply-To:References: X-Originating-IP:Message-Id:MIME-Version:Content-Type: Content-Transfer-Encoding; b=tql6yCOKGZuuE7gTyHCu8/UlfE14k8HaU7K8qfFvCfiVB4PVxvFP3UF1rdTksF/vb MugCJRTrjbbyfSOZEzwwB9AuhH2RRq2bGGcAr8vtHxgLAc3j/bQRKd4eR1o9N0pOFR ivC3o2E9e2Kyl2twsI5fQIoH11uN60FG/F4bdOg0= 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:24:06 -0000 "Andriy Gapon" pisze: > 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 c= ame up in > >>> the past. So no devd event for this. > >> > >> My impression was that lately people were asking for it (and nobody ac= tually > >> "guarded" the code), but there is no good design on how to do it. > >=20 > > 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. >=20 > I don't think that there is any kernel component that pro-actively change= s that > value. Most likely you have something like hald running or otherwise tri= ed to > access the device before the change was noted. I do not even have working CD drive in my laptop, so I cant tell ;) Ivan Klymenko sent this earlier in that thread: NO CD: > kern.geom.conftxt: 0 DISK cd0 0 2048 hd 0 sc 0 CD IN: > kern.geom.conftxt: 0 DISK cd0 4700372992 2048 hd 0 sc 0 Regards, vermaden ...