hal + udev + gnome-volume-manager
kay.sievers at vrfy.org
Mon Aug 7 04:40:13 PDT 2006
On Mon, 2006-08-07 at 04:30 -0700, Arvind Ayyangar wrote:
> hi ppl,
> i am new to this topic, and could not find much details of what i
> was searching for, so that this would be the right place to mail Iin
> case it aint, please guide me )...
> i wanted to know who does the mounting of hotpluged devices? i know
> that halddaemon broacasts the message on Dbus wen a new device is
> added and the callouts for the device is completed and the /proc/mount
> tree is changed. but who reads the messages from Dbus, is it
> gnome-volume-manager or gnome-mount? if it is the manager, i could not
> find that part of the code in the sources which does the mounting...
You get an event chain like this:
kernel -> udev -> hal -> dbus -> g-v-m -> dbus -> hal -> kernel
g-v-m runs as the user and talks over dbus to hal and requests the
mounting, by invoking a method on the hal device object. The actual
mounting is done by hal, but the request and the policy comes from the
> also, i tried reading messages from udev by killing the systems hald
> and reading the mesages by creating a local socket.. code is as under,
> but it doesnt seem to work..
Just run 'udevmonitor [--env]' to see the udev events.
More information about the hal