Sandisk HAL listing does not include the correct HAL properties, and thus fails the test in /usr/share/activities/Journal.activity/volumesmanager.py
--
# Ignore volumes without a filesystem.
if device.GetProperty('volume.fsusage') != 'filesystem':
return False
--
UID 500/1000 issue spun off as seperate bug /bugs.launchpad .net/ubuntu/ +source/ sugar-journal- activity/ +bug/297479
https:/
Sandisk HAL listing does not include the correct HAL properties, and thus fails the test in /usr/share/ activities/ Journal. activity/ volumesmanager. py GetProperty( 'volume. fsusage' ) != 'filesystem':
--
# Ignore volumes without a filesystem.
if device.
return False
--
hal-device listing for Sandisk (USB-ID 0x0781:5406) op/Hal/ devices/ usb_device_ 781_5406_ 000006042303226 2' bus_number = 1 (0x1) (int) product = 'Cruzer Micro 1/4GB Flash Drive' (string) usb/001/ 002' (string) pci0000: 00/0000: 00:1d.0/ usb1/1- 1' (string) linux.sysfs_ path = '/sys/devices/ pci0000: 00/0000: 00:1d.0/ usb1/1- 1' device_ revision_ bcd = 16 (0x10) (int) op/Hal/ devices/ usb_device_ 1d6b_1_ 0000_00_ 1d_0' ( configuration_ value = 1 (0x1) (int) max_power = 100 (0x64) (int) num_configurati ons = 1 (0x1) (int) num_ports = 0 (0x0) (int) op/Hal/ devices/ usb_device_ 781_5406_ 000006042303226 2' num_interfaces = 1 (0x1) (int) linux.device_ number = 2 (0x2) (int) device_ class = 0 (0x0) (int) hotplug_ type = 2 (0x2) (int) device_ subclass = 0 (0x0) (int) device_ protocol = 0 (0x0) (int) version = 2 (double) vendor_ id = 1921 (0x781) (int) is_self_ powered = false (bool) product_ id = 21510 (0x5406) (int) can_wake_ up = false (bool)
--
6: udi = '/org/freedeskt
usb_device.vendor = 'SanDisk Corp.' (string)
usb_device.
usb_device.
linux.device_file = '/dev/bus/
linux.sysfs_path = '/sys/devices/
info.subsystem = 'usb_device' (string)
usb_device.
(string)
usb_device.
info.parent = '/org/freedeskt
string)
usb_device.
info.vendor = 'SanDisk Corp.' (string)
info.product = 'Cruzer Micro 1/4GB Flash Drive' (string)
usb_device.
usb_device.
usb_device.
info.udi = '/org/freedeskt
(string)
info.linux.driver = 'usb' (string)
usb_device.
usb_device.
usb_device.
usb_device.serial = '0000060423032262' (string)
linux.
usb_device.
usb_device.speed = 12 (double)
linux.subsystem = 'usb' (string)
usb_device.
usb_device.
usb_device.
usb_device.
usb_device.
usb_device.
--
By contrast the LEXAR device has it op/Hal/ devices/ volume_ label_LEXAR' hotplug_ type = 3 (0x3) (int) storage_ device = '/org/freedeskt op/Hal/ devices/ storage_ serial_ LEXAR_JD_ FIREFLY_ 106A66121458431 30507_0_ 0' (string) op/Hal/ devices/ volume_ label_LEXAR' (string) control. file = '/dev/sdb1' (string) control. type = 'removable-block' (string) callouts. remove = { 'hal-acl-tool --remove-device' } (string list) mount_point = '/media/LEXAR' (string) is_mounted_ read_only = false (bool) linux.is_ device_ mapper = false (bool) is_partition = true (bool) partition. number = 1 (0x1) (int) partition. start = 16384 (0x4000) (uint64) partition. media_size = 1014497280 (0x3c780000) (uint64) partition. scheme = 'mbr' (string) partition. type = '0x04' (string) partition. label = '' (string) sdb/sdb1' (string) partition. uuid = '' (string) op/Hal/ devices/ storage_ serial_ LEXAR_JD_ FIREFLY_ 106A66121458431 30507_0_ 0' (string) partition. flags = { 'boot' } (string list) op.Hal. Device. Volume. method_ names = { 'Mount', 'Unmount', 'Eject' } (string list) op.Hal. Device. Volume. method_ signatures = { 'ssas', 'as', 'as' } (string list) p.Hal.Device. Volume' } (string list) op.Hal. Device. Volume. method_ argnames = { 'mount_point fstype extra_options', 'extra_options', 'extra_options' } (string list) op.Hal. Device. Volume. method_ execpaths = { 'hal-storage- mount', 'hal-storage- unmount' , 'hal-storage-eject' } (string list) mount.valid_ options = { 'ro', 'sync', 'dirsync', 'noatime', 'nodiratime', 'noexec', 'quiet', 'remount', 'exec', 'utf8', 'shortname=', 'codepage=', 'iocharset=', 'umask=', 'dmask=', 'fmask=', 'uid=', 'flush' } (string list) unmount. valid_options = { 'lazy' } (string list)
--
7: udi = '/org/freedeskt
linux.
info.product = 'LEXAR' (string)
info.capabilities = { 'volume', 'block', 'access_control' } (string list)
block.
info.udi = '/org/freedeskt
volume.fstype = 'vfat' (string)
access_
volume.fsusage = 'filesystem' (string)
access_
volume.fsversion = 'FAT16' (string)
info.callouts.add = { 'hal-acl-tool --add-device' } (string list)
volume.uuid = '' (string)
info.
volume.label = 'LEXAR' (string)
volume.
volume.is_mounted = true (bool)
volume.
volume.
volume.is_disc = false (bool)
volume.
volume.
volume.block_size = 512 (0x200) (int)
volume.num_blocks = 1981408 (0x1e3be0) (uint64)
volume.size = 1014480896 (0x3c77c000) (uint64)
block.device = '/dev/sdb1' (string)
block.major = 8 (0x8) (int)
info.category = 'volume' (string)
volume.
block.minor = 17 (0x11) (int)
volume.
block.is_volume = true (bool)
volume.
volume.
volume.
linux.sysfs_path = '/sys/block/
volume.
info.parent = '/org/freedeskt
volume.
volume.ignore = false (bool)
storage.model = '' (string)
org.freedeskt
org.freedeskt
info.interfaces = { 'org.freedeskto
org.freedeskt
org.freedeskt
volume.
volume.
--
Not sure whether this is a bug with sugar-journal- activity or with the HAL fdi's
Simon.