From owner-freebsd-stable@FreeBSD.ORG Tue Feb 28 22:04:25 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 40D6C106564A; Tue, 28 Feb 2012 22:04:25 +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 E68548FC08; Tue, 28 Feb 2012 22:04:24 +0000 (UTC) Date: Tue, 28 Feb 2012 23:04:23 +0100 From: vermaden To: Andriy Gapon X-Mailer: interia.pl/pf09 In-Reply-To: <4F4D403E.2030703@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> 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=1330466663; bh=UqMCdTk6D0n9t+iIQ9VZ8/rcIX30ExeebxmMaRyJHS8=; 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=D+mB1Jeu6S5dtawPotZqyScXYC6iQGaRULFl/V7QP8iwwQN2xj4n/UBuBoH0PmBB/ Fq9U6aR6FMmbAkgCRCpTyaRTOGVBDSIxExJwqKGiSOT44Pa2v+GYuneOkOcKSVY9Ay ufZ3ZFwHXowpJ6+gMBla7Z7YxI00uBSH0b+ZZgNo= 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:04:25 -0000 "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 re= levant CD > > code where against something like this in the kernel everytime this cam= e up in > > the past. So no devd event for this. >=20 > My impression was that lately people were asking for it (and nobody actua= lly > "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. Regards, vermaden ...