Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 Feb 2012 00:11:26 +0200
From:      Andriy Gapon <avg@FreeBSD.org>
To:        vermaden <vermaden@interia.pl>
Cc:        fidaj@ukr.net, freebsd-stable@FreeBSD.org, lars.engels@0x20.net, Hans Petter Selasky <hselasky@c2i.net>, Alexander Leidinger <Alexander@Leidinger.net>, smithi@nimnet.asn.au
Subject:   Re: devd based AUTOMOUNTER
Message-ID:  <4F4D510E.60206@FreeBSD.org>
In-Reply-To: <qdhsbowuuhzdjuvpiakq@eioe>
References:  <hkubftdrahxmtuzcfqzh@ziad> <4F3EE186.4020801@gmail.com> <uhhupehcnrebtwjfedhg@xlkc> <201202181409.08859.hselasky@c2i.net> <evbvqmovseenzzafkvdy@cufm> <dusvifyxcdqegubftcgz@lvhf> <20120226203949.H89643@sola.nimnet.asn.au> <CAN6yY1uYMfWqkbXLHXuS-bTKes7T=YMS%2BfBX8_%2BXtx9-rBFmyw@mail.gmail.com> <ztlcngurasjmdlkymcau@dovo> <CAN6yY1sfFH%2B4pBmmSmREG5xO1nF8iCzPwXKuXAOG3rBrsO62bg@mail.gmail.com> <kovckjfzfftyzqjrypqv@khtj> <20120228162636.Horde.JgORKJjmRSRPTPIsGKfo0uA@webmail.leidinger.net> <4F4D403E.2030703@FreeBSD.org> <qdhsbowuuhzdjuvpiakq@eioe>

next in thread | previous in thread | raw e-mail | index | archive | help
on 29/02/2012 00:04 vermaden said the following:
> "Andriy Gapon" <avg@FreeBSD.org> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4F4D510E.60206>