[Pkg-ltsp-devel] Bug#575031: ltspfs: issue KDE popups

Petter Reinholdtsen pere at hungry.com
Mon May 3 05:39:24 UTC 2010


Michael Biebl tested to use hal-device --add to generate the
approporiate HAL event, but this one caused KDE to crash because some
value is missing.  Posting it her to have it documented.

cat > /tmp/device-info.txt <<EOF
block.is_volume = true  (bool)
info.capabilities = {'volume', 'block'} (string list)
info.category = 'volume'  (string)
info.interfaces = {'org.freedesktop.Hal.Device.Volume'} (string list)
info.product = 'LTSP'  (string)
info.parent = '/org/freedesktop/Hal/devices/computer'  (string)
volume.fstype = 'ltspfs'  (string)
volume.fsusage = 'filesystem'  (string)
volume.ignore = false  (bool)
volume.is_disc = false  (bool)
volume.is_mounted = true  (bool)
volume.is_mounted_read_only = false  (bool)
volume.is_partition = false  (bool)
volume.label = 'LTSP'  (string)
volume.mount_point = '/media/ltsp'  (string)
EOF
hal-device --add LTSP < /tmp/device-info.txt

The missing value might be possible to figure out by reading
<URL: file:///usr/share/doc/hal-doc/spec/hal-spec.html >.

When I use lshal, I see these entries listed for my USB stick, when it
is inserted but not mounted yet.  Perhaps some of these values are
required?

udi = '/org/freedesktop/Hal/devices/usb_device_90c_1000_A800000000026288_if0_scsi
_host_scsi_device_lun0'
  info.linux.driver = 'sd'  (string)
  info.parent = '/org/freedesktop/Hal/devices/usb_device_90c_1000_A800000000026288_if0_scsi_host'  (string)
  info.product = 'SCSI Device'  (string)
  info.subsystem = 'scsi'  (string)
  info.udi = '/org/freedesktop/Hal/devices/usb_device_90c_1000_A800000000026288_if0_scsi_host_scsi_device_lun0'  (string)
  linux.hotplug_type = 2  (0x2)  (int)
  linux.subsystem = 'scsi'  (string)
  linux.sysfs_path = '/sys/devices/pci0000:00/0000:00:1d.7/usb5/5-4/5-4:1.0/host10/target10:0:0/10:0:0:0'  (string)
  scsi.bus = 0  (0x0)  (int)
  scsi.host = 10  (0xa)  (int)
  scsi.lun = 0  (0x0)  (int)
  scsi.model = 'Flash Voyager'  (string)
  scsi.target = 0  (0x0)  (int)
  scsi.type = 'disk'  (string)
  scsi.vendor = 'Corsair'  (string)

udi = '/org/freedesktop/Hal/devices/storage_serial_Corsair_Flash_Voyager_A800000000026288_0_0'
  block.device = '/dev/sdb'  (string)
  block.is_volume = false  (bool)
  block.major = 8  (0x8)  (int)
  block.minor = 16  (0x10)  (int)
  block.storage_device = '/org/freedesktop/Hal/devices/storage_serial_Corsair_Flash_Voyager_A800000000026288_0_0'  (string)
  info.addons = {'hald-addon-storage'} (string list)
  info.capabilities = {'storage', 'block'} (string list)
  info.category = 'storage'  (string)
  info.interfaces = {'org.freedesktop.Hal.Device.Storage.Removable'} (string list)
  info.parent = '/org/freedesktop/Hal/devices/usb_device_90c_1000_A800000000026288_if0_scsi_host_scsi_device_lun0'  (string)
  info.product = 'Flash Voyager'  (string)
  info.udi = '/org/freedesktop/Hal/devices/storage_serial_Corsair_Flash_Voyager_A800000000026288_0_0'  (string)
  info.vendor = 'Corsair'  (string)
  linux.hotplug_type = 3  (0x3)  (int)
  linux.sysfs_path = '/sys/block/sdb'  (string)
  storage.automount_enabled_hint = true  (bool)
  storage.bus = 'usb'  (string)
  storage.drive_type = 'disk'  (string)
  storage.firmware_version = '1100'  (string)
  storage.hotpluggable = true  (bool)
  storage.lun = 0  (0x0)  (int)
  storage.media_check_enabled = true  (bool)
  storage.model = 'Flash Voyager'  (string)
  storage.no_partitions_hint = false  (bool)
  storage.originating_device = '/org/freedesktop/Hal/devices/usb_device_90c_1000_A800000000026288_if0'  (string)
  storage.partitioning_scheme = 'mbr'  (string)
  storage.removable = true  (bool)
  storage.removable.media_available = true  (bool)
  storage.removable.media_size = 4060086272  (0xf2000000)  (uint64)
  storage.removable.support_async_notification = false  (bool)
  storage.requires_eject = false  (bool)
  storage.serial = 'Corsair_Flash_Voyager_A800000000026288-0:0'  (string)
  storage.size = 0  (0x0)  (uint64)
  storage.vendor = 'Corsair'  (string)

udi = '/org/freedesktop/Hal/devices/volume_uuid_1f59d4b0_08d4_4551_aa27_f777df5cffb6'
  block.device = '/dev/sdb1'  (string)
  block.is_volume = true  (bool)
  block.major = 8  (0x8)  (int)
  block.minor = 17  (0x11)  (int)
  block.storage_device = '/org/freedesktop/Hal/devices/storage_serial_Corsair_Flash_Voyager_A800000000026288_0_0'  (string)
  info.capabilities = {'volume', 'block'} (string list)
  info.category = 'volume'  (string)
  info.interfaces = {'org.freedesktop.Hal.Device.Volume'} (string list)
  info.parent = '/org/freedesktop/Hal/devices/storage_serial_Corsair_Flash_Voyager_A800000000026288_0_0'  (string)
  info.product = 'Volume (ext3)'  (string)
  info.udi = '/org/freedesktop/Hal/devices/volume_uuid_1f59d4b0_08d4_4551_aa27_f777df5cffb6'  (string)
  linux.hotplug_type = 3  (0x3)  (int)
  linux.sysfs_path = '/sys/block/sdb/sdb1'  (string)
  org.freedesktop.Hal.Device.Volume.method_argnames = {'mount_point fstype extra_options', 'extra_options', 'extra_options'} (string list)
  org.freedesktop.Hal.Device.Volume.method_execpaths = {'hal-storage-mount', 'hal-storage-unmount', 'hal-storage-eject'} (string list)
  org.freedesktop.Hal.Device.Volume.method_names = {'Mount', 'Unmount', 'Eject'} (string list)
  org.freedesktop.Hal.Device.Volume.method_signatures = {'ssas', 'as', 'as'} (string list)
  storage.model = ''  (string)
  volume.block_size = 512  (0x200)  (int)
  volume.fstype = 'ext3'  (string)
  volume.fsusage = 'filesystem'  (string)
  volume.fsversion = '1.0'  (string)
  volume.ignore = false  (bool)
  volume.is_disc = false  (bool)
  volume.is_mounted = false  (bool)
  volume.is_mounted_read_only = false  (bool)
  volume.is_partition = true  (bool)
  volume.label = ''  (string)
  volume.linux.is_device_mapper = false  (bool)
  volume.mount.valid_options = {'ro', 'sync', 'dirsync', 'noatime', 'nodiratime', 'noexec', 'quiet', 'remount', 'exec', 'acl', 'user_xattr', 'data='} (string list)
  volume.mount_point = ''  (string)
  volume.num_blocks = 7919982  (0x78d96e)  (int)
  volume.partition.flags = {} (string list)
  volume.partition.label = ''  (string)
  volume.partition.media_size = 4060086272  (0xf2000000)  (uint64)
  volume.partition.number = 1  (0x1)  (int)
  volume.partition.scheme = 'mbr'  (string)
  volume.partition.start = 32256  (0x7e00)  (uint64)
  volume.partition.type = '0x83'  (string)
  volume.partition.uuid = ''  (string)
  volume.size = 4055030784  (0xf1b2dc00)  (uint64)
  volume.unmount.valid_options = {'lazy'} (string list)
  volume.uuid = '1f59d4b0-08d4-4551-aa27-f777df5cffb6'  (string)

Happy hacking,
-- 
Petter Reinholdtsen





More information about the Pkg-ltsp-devel mailing list