hal >= 0.5.13: hald-addon-storage doesn't work

27/249 i27249 at gmail.com
Mon Feb 22 16:39:52 PST 2010


Hello!

I'm trying to update my slackware-based system to udev 151. As far as
I see, udev update requires hal update as well, so I decided to update
to hal 0.5.14.
Initial versions: udev 141, hal 0.5.11 - everything works just fine.
After upgrading udev and hal, I got an issue: removable media doesn't
detects anymore.
Symptoms:
1. udev part seems to work properly: I can see activity in
/var/log/messages from udevd (udev_log="debug" in udev.conf)
2. If I start HAL when USB flash key is already inserted - it is
visible by HAL (I can see device using lshal and hal-device), but no
reaction given when device is removed: desktop apps still displays
partitions from usb flash, and hald itself just reports that he fails
to open device (see log below).
3. If I start HAL first, and then insert USB flash - I see absolutely
no activity from hald (lshal also soesn't show me anything).

Part of log I got when running hald --daemon=no --verbose=yes when
flash was already inserted:

03:22:37.658 [I] hald_dbus.c:5909: entering
[5418]: 03:22:40.000 [I] addon-storage.c:356: Checking whether device
/dev/sdb is locked on HAL
[5418]: 03:22:40.001 [I] addon-storage.c:365: ... device /dev/sdb is
not locked on HAL
[5418]: 03:22:40.001 [D] addon-storage.c:548: Media insertion detected
on /dev/sdb
03:22:40.002 [D] hald_dbus.c:1659:
udi=/org/freedesktop/Hal/devices/storage_serial_JetFlash_Transcend_8GB_N6NHE2K8_0_0,
key=storage.removable.media_available
03:22:40.002 [I] hald_dbus.c:3115: entering, local_interface=1
03:22:40.002 [D] hald_dbus.c:3124:
udi=/org/freedesktop/Hal/devices/storage_serial_JetFlash_Transcend_8GB_N6NHE2K8_0_0
03:22:40.002 [I] blockdev.c:1780: blockdev_rescan_device:
udi=/org/freedesktop/Hal/devices/storage_serial_JetFlash_Transcend_8GB_N6NHE2K8_0_0
Run started hald-probe-storage (20000) (0)
!  full path is '/usr/libexec/hald-probe-storage', program_dir is '/usr/libexec'
woohoo
[5430]: 03:22:40.006 [D] probe-storage.c:141: Doing probe-storage for
/dev/sdb (bus usb) (drive_type disk)
(udi=/org/freedesktop/Hal/devices/storage_serial_JetFlash_Transcend_8GB_N6NHE2K8_0_0)
(--only-check-for-fs==1)
[5430]: 03:22:40.006 [D] probe-storage.c:439: Checking for file system
on /dev/sdb
[5430]: 03:22:40.006 [D] probe-storage.c:445: Doing open ("/dev/sdb", O_RDONLY)
[5430]: 03:22:40.007 [D] probe-storage.c:453: Returned from open(2)
[5430]: 03:22:40.007 [D] probe-storage.c:469: look for existing
partitions for sdb
[5430]: 03:22:40.007 [D] probe-storage.c:479: partition sdb1 found,
skip probing for filesystem
[5430]: 03:22:40.009 [I] partutil.c:875: MSDOS partition table detected
03:22:40.010 [I] hald_dbus.c:1371: storage.removable.media_available -> True
03:22:40.010 [I] hald_dbus.c:1355: storage.removable.media_size -> 8032092160
03:22:40.010 [I] hald_dbus.c:1339: storage.partitioning_scheme -> mbr
pid 5430: rc=0 signaled=0: /usr/libexec/hald-probe-storage
03:22:40.011 [I] blockdev.c:1736: hald-probe-storage
--only-check-for-media returned 0 (exit_type=0)
03:22:40.011 [D] hotplug.c:500: events queued = 0, events in progress = 0
03:22:40.011 [D] hotplug.c:505: Hotplug-queue empty now ... no hotplug
events in progress

... Now I removed the flash key, and see:
[5418]: 03:22:52.002 [E] addon-storage.c:504: open failed for
/dev/sdb: No such file or directory
[5418]: 03:22:54.002 [E] addon-storage.c:504: open failed for
/dev/sdb: No such file or directory
[5418]: 03:22:56.002 [E] addon-storage.c:504: open failed for
/dev/sdb: No such file or directory

If flash inserts after starting hald, last string I see is

[D] hotplug.c:505: Hotplug-queue empty now ... no hotplug events in progress

After that, no activity there while inserting/removing flash key.

I know that most distros already has these pair of udev and hal works,
but I cannot figure out what prevents me from achieving same result.

Please help!

-- 
Best regards, AiX 27/249 <i27249 at gmail.com>
[Using null methods]


More information about the hal mailing list