Inconsistent storage.bus and storage.originating_device info

Baz Walter bazwal at ftml.net
Sun Sep 20 09:11:08 PDT 2009


Baz Walter wrote:
> but in any case, this doesn't deal with the problem i am facing. 
> hal-info doesn't consistently show the same originating_device every 
> time i plug the device in.

just to make things clear, here are two outputs from lshal which show 
the inconsistencies:

====== start (1) ========

[root at localhost ~]# lshal -u 
/org/freedesktop/Hal/devices/storage_serial_SAMSUNG_YP_P3_7B3655A8E0D400000000000000000000_0_0
udi = 
'/org/freedesktop/Hal/devices/storage_serial_SAMSUNG_YP_P3_7B3655A8E0D400000000000000000000_0_0'
   access_control.file = '/dev/sdd'  (string)
   access_control.type = 'removable-block'  (string)
   block.device = '/dev/sdd'  (string)
   block.is_volume = false  (bool)
   block.major = 8  (0x8)  (int)
   block.minor = 48  (0x30)  (int)
   block.storage_device = 
'/org/freedesktop/Hal/devices/storage_serial_SAMSUNG_YP_P3_7B3655A8E0D400000000000000000000_0_0' 
  (string)
   info.addons = {'hald-addon-storage'} (string list)
   info.callouts.add = {'hal-acl-tool --add-device'} (string list)
   info.callouts.remove = {'hal-acl-tool --remove-device'} (string list)
   info.capabilities = {'storage', 'block', 'portable_audio_player', 
'access_control'} (string list)
   info.category = 'portable_audio_player'  (string)
   info.interfaces = {'org.freedesktop.Hal.Device.Storage.Removable'} 
(string list)
   info.parent = 
'/org/freedesktop/Hal/devices/usb_device_4e8_5119_7B3655A8E0D400000000000000000000_if0_scsi_host_0_scsi_device_lun0' 
  (string)
   info.product = 'YP-P3'  (string)
   info.udi = 
'/org/freedesktop/Hal/devices/storage_serial_SAMSUNG_YP_P3_7B3655A8E0D400000000000000000000_0_0' 
  (string)
   info.vendor = 'SAMSUNG'  (string)
   linux.hotplug_type = 3  (0x3)  (int)
   linux.sysfs_path = 
'/sys/devices/pci0000:00/0000:00:02.1/usb1/1-6/1-6:1.0/host19/target19:0:0/19:0:0:0/block/sdd' 
  (string)
   portable_audio_player.access_method.protocols = {'storage'} (string list)
   portable_audio_player.audio_folders = {'Music/', 'Video/', 
'Datacasts/', 'Recorded Files/FM Radio/', 'Recorded Files/Voice/'} 
(string list)
   portable_audio_player.input_formats = {'audio/mpeg'} (string list)
   portable_audio_player.output_formats = {'audio/mpeg', 
'application/ogg', 'audio/aac', 'audio/x-flac', 'audio/x-ms-wma'} 
(string list)
   portable_audio_player.playlist_format = {'audio/x-spl', 
'application/vnd.ms-wpl'} (string list)
   portable_audio_player.playlist_path = 'Playlists/%File'  (string)
   portable_audio_player.storage_device = 
'/org/freedesktop/Hal/devices/storage_serial_SAMSUNG_YP_P3_7B3655A8E0D400000000000000000000_0_0' 
  (string)
   storage.automount_enabled_hint = true  (bool)
   storage.bus = 'usb'  (string)
   storage.drive_type = 'disk'  (string)
   storage.firmware_version = '1.00'  (string)
   storage.hotpluggable = true  (bool)
   storage.lun = 0  (0x0)  (int)
   storage.media_check_enabled = true  (bool)
   storage.model = 'YP-P3'  (string)
   storage.no_partitions_hint = false  (bool)
   storage.originating_device = 
'/org/freedesktop/Hal/devices/usb_device_4e8_5119_7B3655A8E0D400000000000000000000_if0' 
  (string)
   storage.partitioning_scheme = 'none'  (string)
   storage.removable = true  (bool)
   storage.removable.media_available = true  (bool)
   storage.removable.media_size = 7764443136  (0x1cecc0000)  (uint64)
   storage.removable.support_async_notification = false  (bool)
   storage.requires_eject = false  (bool)
   storage.serial = 'SAMSUNG_YP-P3_7B3655A8E0D400000000000000000000-0:0' 
  (string)
   storage.size = 0  (0x0)  (uint64)
   storage.vendor = 'SAMSUNG'  (string)

====== end (1) =========

====== start (2) ========

[root at localhost ~]# lshal -u 
/org/freedesktop/Hal/devices/storage_serial_SAMSUNG_YP_P3_7B3655A8E0D400000000000000000000_0_0
udi = 
'/org/freedesktop/Hal/devices/storage_serial_SAMSUNG_YP_P3_7B3655A8E0D400000000000000000000_0_0'
   access_control.file = '/dev/sdd'  (string)
   access_control.type = 'removable-block'  (string)
   block.device = '/dev/sdd'  (string)
   block.is_volume = false  (bool)
   block.major = 8  (0x8)  (int)
   block.minor = 48  (0x30)  (int)
   block.storage_device = 
'/org/freedesktop/Hal/devices/storage_serial_SAMSUNG_YP_P3_7B3655A8E0D400000000000000000000_0_0' 
  (string)
   info.addons = {'hald-addon-storage'} (string list)
   info.callouts.add = {'hal-acl-tool --add-device'} (string list)
   info.callouts.remove = {'hal-acl-tool --remove-device'} (string list)
   info.capabilities = {'storage', 'block', 'access_control'} (string list)
   info.category = 'storage'  (string)
   info.interfaces = {'org.freedesktop.Hal.Device.Storage.Removable'} 
(string list)
   info.parent = 
'/org/freedesktop/Hal/devices/usb_device_4e8_5119_7B3655A8E0D400000000000000000000_scsi_host_scsi_device_lun0' 
  (string)
   info.product = 'YP-P3'  (string)
   info.udi = 
'/org/freedesktop/Hal/devices/storage_serial_SAMSUNG_YP_P3_7B3655A8E0D400000000000000000000_0_0' 
  (string)
   info.vendor = 'SAMSUNG'  (string)
   linux.hotplug_type = 3  (0x3)  (int)
   linux.sysfs_path = 
'/sys/devices/pci0000:00/0000:00:02.1/usb1/1-6/1-6:1.0/host18/target18:0:0/18:0:0:0/block/sdd' 
  (string)
   storage.automount_enabled_hint = true  (bool)
   storage.bus = 'pci'  (string)
   storage.drive_type = 'disk'  (string)
   storage.firmware_version = '1.00'  (string)
   storage.hotpluggable = false  (bool)
   storage.lun = 0  (0x0)  (int)
   storage.media_check_enabled = true  (bool)
   storage.model = 'YP-P3'  (string)
   storage.no_partitions_hint = false  (bool)
   storage.originating_device = '/org/freedesktop/Hal/devices/computer' 
  (string)
   storage.partitioning_scheme = 'none'  (string)
   storage.removable = true  (bool)
   storage.removable.media_available = true  (bool)
   storage.removable.media_size = 7764443136  (0x1cecc0000)  (uint64)
   storage.removable.support_async_notification = false  (bool)
   storage.requires_eject = false  (bool)
   storage.serial = 'SAMSUNG_YP-P3_7B3655A8E0D400000000000000000000-0:0' 
  (string)
   storage.size = 0  (0x0)  (uint64)
   storage.vendor = 'SAMSUNG'  (string)

====== end (2) ======



More information about the hal mailing list