From kde-devel Mon Sep 20 21:32:09 2004 From: Luke Kenneth Casson Leighton Date: Mon, 20 Sep 2004 21:32:09 +0000 To: kde-devel Subject: KDE Volume Manager not receiving mount points from HAL - it can't Message-Id: <20040920213209.GO23901 () lkcl ! net> X-MARC-Message: https://marc.info/?l=kde-devel&m=109571528617229 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. -- lkcl.net
lkcl@lkcl.net
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<