letting glabel recognise a media change

Garrett Cooper gcooper at FreeBSD.org
Thu Sep 30 22:44:16 UTC 2010

On Thu, Sep 30, 2010 at 2:38 PM, Doug Barton <dougb at freebsd.org> wrote:
> On 9/30/2010 2:34 PM, Doug Barton wrote:
>> On 9/30/2010 2:29 PM, Dimitry Andric wrote:
>>> On 2010-09-30 23:07, Doug Barton wrote:
>>>> To what extent is HAL relevant here? I was sort of ambivalent about
>>>> using it in FreeBSD, but my recent experimentation with ubuntu is
>>>> starting to change my mind.
>>> Please read this first: https://wiki.ubuntu.com/Halsectomy :)
>> Right, especially the bits about moving the functionality into the kernel.
> Sorry, I'm being too terse. What I'm saying is that we have an existing
> "notifications" model that third party apps already know how to deal with.
> If we're considering developing a notifications model of our own then we are
> well served by looking at the work that has gone before (without violating
> copyright issues, yadda yadda).

    The problem is that the current system proposed for Device Kit is
based on file system notification. I know we can do this with kqueues
to some degree, but we do some of our best work via sysctls, and using
other methods of attack, so it would be nice if these were
`abstracted' out into generic events with OS specific callback
    Anyhow, just something to toss around, but honestly apart from the
disc tasting I see via hald whenever I insert a CD or DVD, I could
really care less about that functionality, and it could be just as
easily implemented via some other mechanism, similar to what we
already have in devd, or something more kernel centric like others
have suggested before with geom.

More information about the freebsd-current mailing list