KDE Volume Manager not receiving mount points from HAL - it
can't cope!
Luke Kenneth Casson Leighton
lkcl at lkcl.net
Mon Sep 20 17:54:16 PDT 2004
On Tue, Sep 21, 2004 at 12:46:58AM +0100, Luke Kenneth Casson Leighton wrote:
> Dumping 39 device(s) from the Global Device List:
> -------------------------------------------------
> udi = '/org/freedesktop/Hal/devices/block_8_16'
> info.udi = '/org/freedesktop/Hal/devices/block_8_16' (string)
> storage.hotpluggable = true (bool)
> storage.removable = false (bool)
> info.product = 'USB-FDU' (string)
> info.vendor = 'Y-E DATA' (string)
> storage.drive_type = 'floppy' (string)
> block.storage_device = '/org/freedesktop/Hal/devices/block_8_16' (string)
> storage.physical_device = '/org/freedesktop/Hal/devices/usb_usb_device_57b_0_501_-1_noserial_0' (string)
> storage.vendor = 'Y-E DATA' (string)
> storage.model = 'USB-FDU' (string)
> storage.automount_enabled_hint = true (bool)
> storage.no_partitions_hint = true (bool)
> storage.media_check_enabled = true (bool)
> storage.bus = 'usb' (string)
> block.minor = 16 (0x10) (int)
> block.major = 8 (0x8) (int)
> info.capabilities = 'block storage' (string)
> info.category = 'storage' (string)
> block.device = '/dev/sdb' (string)
> info.parent = '/org/freedesktop/Hal/devices/scsi_1_0_0_0' (string)
> block.is_volume = false (bool)
> block.have_scanned = false (bool)
> block.no_partitions = true (bool)
> linux.sysfs_path_device = '/sys/block/sdb' (string)
> linux.sysfs_path = '/sys/block/sdb' (string)
> info.bus = 'block' (string)
>
> > This hal device object is a child of the hal
> > device object representing the drive itself. It works just like when
> > using partitioned media, e.g. /dev/sdb and /dev/sdb1 on a memory card.
> > One of the points of hal is to abstract the difference between
> > partitioned and non-partitioned media; e.g. provide an abstraction with
> > drives and volumes instead.
> >
> > So, when you mount the volume using mount(1), e.g. 'mount /dev/sda' from
> > the commandline or from a program like KVM (since an entry
> > relating /dev/sda and /media/floppy1 is already in /etc/fstab file this
> > is possible),
okay, i think i might have tracked down what the problem is.
notice in the above that :
> storage.removable = false (bool)
ah... it's a usb floppy. "/proc/scsi/usb-storage/%d"
from block_class.c says it's one of those
"Protocol: Uniform Floppy Interface (UFI)" things.
so has_removable_media will get set to TRUE.
... only to have it set to FALSE because there's no entry
/sys/block/sdb/removable in order to be read.
ah... um... what gives?
l.
_______________________________________________
hal mailing list
hal at freedesktop.org
http://freedesktop.org/mailman/listinfo/hal
More information about the Hal
mailing list