devd based AUTOMOUNTER
avg at FreeBSD.org
Tue Feb 28 22:11:49 UTC 2012
on 29/02/2012 00:04 vermaden said the following:
> "Andriy Gapon" <avg at 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.
More information about the freebsd-stable