KDE Volume Manager not receiving mount points from HAL - it can't cope!

Luke Kenneth Casson Leighton lkcl at lkcl.net
Mon Sep 20 14:32:09 PDT 2004


i'm messing with HAL hal-0.2.97+cvs20040907$  and with KVM and kde from
latest cvs.

the issue is that a usb floppy drive has a mount device of /dev/sda
and a mount point generated in ftsab /media/floppy1 that isn't then
passed over by HAL to KVM.

KVM goes "oh, it's a floppy, and we don't know its mountpoint, hmmm"
and generates a filename "floppy:/" for it.

when a user accesses the Floppy, KDE goes "floppy:/" ah ha, i know what
to do with that, let's go access /dev/fd0 which just smells of cow poo
because the actual location is /dev/sda.

lshal shows no entries, in fact, looking at block_class_device.c
i find that it reads /etc/mtab quite happily.


under the normal KDE system (mountwatcher, disabling KVM) it
works great because mountwatcher reads /etc/mtab and /etc/fstab
and wow, gosh, other than the problem of forcing the users to
deal with an "unmount" concept, somewhere under the hood KDE
goes "oh, this is /dev/sda, and it's /media/floppy1, and it
isn't mounted, so let's mount it".

... but i don't _want_ to use mountwatcher because then i would
have no chance to have a CD or DVD or camera be fired up automatically
from a hotplug event.


so.

is the solution that i should hack KVM to read /etc/fstab?

should i hack KVM to read /etc/fstab?

should i hack HAL to write an /etc/autofs.hal file and hack KVM
to read it?

should i hack the KDE source (kioslaves/devices/kdemodule)
to blop the functionality of KVM into the kdebase mountwatcher?

l.

-- 
--
Truth, honesty and respect are rare commodities that all spring from
the same well: Love.  If you love yourself and everyone and everything
around you, funnily and coincidentally enough, life gets a lot better.
--
<a href="http://lkcl.net">      lkcl.net      </a> <br />
<a href="mailto:lkcl at lkcl.net"> lkcl at lkcl.net </a> <br />

_______________________________________________
hal mailing list
hal at freedesktop.org
http://freedesktop.org/mailman/listinfo/hal



More information about the Hal mailing list