GNOME Bugzilla – Bug 387823
glib 2.12.5 is breaking hal
Last modified: 2006-12-20 18:18:54 UTC
This is on Mandriva Cooker i586. After updating glib to 2.12.5, detecting mounted devices by hal isn't working anymore. Removable devices are mounted just fine by gnome-volume-manager, but the mount status isn't reported by hal to the gnome vfs layer, so in the drivemount applet and in computer:/// the devices are still shown as unmounted. Reverting to glib 2.12.4 and restarting hal is fixing the problem. It happens with both hal 0.5.8.1 and 0.5.7.1. glib 2.12.5 built fine, the test suite gave no error.
Can you test if cvs works better ?
Nothing in hal proper uses GKeyFile... Götz, care to elaborate? Should probably include things like output of 'lshal --monitor' etc. Thanks.
Hi guys, I'll try the CVS version tonight. I'll check lshal, but at the moment I have only remote access to my test machine. Greetings from Zeuthen, Götz
OK, I could do some tests remotely. This is the correct hal behaviour with glib 2.14.4: [goetz@abgrund gnome]$ lshal --monitor& [1] 12866 [goetz@abgrund gnome]$ Start monitoring devicelist: ------------------------------------------------- [goetz@abgrund gnome]$ mount /dev/hdc5 on / type ext3 (rw) none on /proc type proc (rw) none on /dev/pts type devpts (rw,mode=0620) /dev/hdc7 on /home type ext3 (rw,user_xattr) /dev/hdc8 on /mnt/win_f type vfat (rw,iocharset=iso8859-15,codepage=850,umask=0,showexec) /dev/hdc1 on /mnt/windows type ntfs (ro,iocharset=iso8859-15,umask=0) none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw) /dev/sda1 on /mnt/removable type ext3 (rw,noexec,nosuid,nodev,user_xattr,user=goetz) [goetz@abgrund gnome]$ gnome-mount -d /dev/sdb2 gnome-mount 0.5 X display not available - using text-based operation. libhal-storage.c 1401 : INFO: called LIBHAL_FREE_DBUS_ERROR but dbusError was not set. volume_uuid_2C24_FB9E property volume.mount_point = '/media/ipod' volume_uuid_2C24_FB9E property volume.is_mounted = true Mounted /dev/sdb2 at "/media/ipod" [goetz@abgrund gnome]$ gnome-umount -d /dev/sdb2 gnome-mount 0.5 X display not available - using text-based operation. libhal-storage.c 1401 : INFO: called LIBHAL_FREE_DBUS_ERROR but dbusError was not set. Unmounted /dev/sdb2 [goetz@abgrund gnome]$ volume_uuid_2C24_FB9E property volume.mount_point = '' volume_uuid_2C24_FB9E property volume.is_mounted = false [goetz@abgrund gnome]$ mount /dev/hdc5 on / type ext3 (rw) none on /proc type proc (rw) none on /dev/pts type devpts (rw,mode=0620) /dev/hdc7 on /home type ext3 (rw,user_xattr) /dev/hdc8 on /mnt/win_f type vfat (rw,iocharset=iso8859-15,codepage=850,umask=0,showexec) /dev/hdc1 on /mnt/windows type ntfs (ro,iocharset=iso8859-15,umask=0) none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw) /dev/sda1 on /mnt/removable type ext3 (rw,noexec,nosuid,nodev,user_xattr,user=goetz) [goetz@abgrund gnome]$ This is the broken behaviour with glib 2.15.5: [goetz@abgrund gnome]$ lshal --monitor& [1] 12960 [goetz@abgrund gnome]$ Start monitoring devicelist: ------------------------------------------------- [goetz@abgrund gnome]$ gnome-mount -d /dev/sdb2 gnome-mount 0.5 X display not available - using text-based operation. libhal-storage.c 1401 : INFO: called LIBHAL_FREE_DBUS_ERROR but dbusError was not set. Mounted /dev/sdb2 at "/media/ipod" [goetz@abgrund gnome]$ gnome-umount -d /dev/sdb2 gnome-mount 0.5 X display not available - using text-based operation. libhal-storage.c 1401 : INFO: called LIBHAL_FREE_DBUS_ERROR but dbusError was not set. ** (gnome-umount:12968): WARNING **: Unmount failed for /org/freedesktop/Hal/devices/volume_uuid_2C24_FB9E: org.freedesktop.Hal.Device.Volume.NotMounted : According to HAL, the volume is not mounted [goetz@abgrund gnome]$ volume_uuid_2C24_FB9E property volume.mount_point = '/media/ipod' volume_uuid_2C24_FB9E property volume.is_mounted = true [goetz@abgrund gnome]$ mount /dev/hdc5 on / type ext3 (rw) none on /proc type proc (rw) none on /dev/pts type devpts (rw,mode=0620) /dev/hdc7 on /home type ext3 (rw,user_xattr) /dev/hdc8 on /mnt/win_f type vfat (rw,iocharset=iso8859-15,codepage=850,umask=0,showexec) /dev/hdc1 on /mnt/windows type ntfs (ro,iocharset=iso8859-15,umask=0) none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw) /dev/sda1 on /mnt/removable type ext3 (rw,noexec,nosuid,nodev,user_xattr,user=goetz) /dev/sdb2 on /media/ipod type vfat (rw,noexec,nosuid,nodev,shortname=winnt,uid=501) [goetz@abgrund gnome]$ gnome-umount -d /dev/sdb2 gnome-mount 0.5 X display not available - using text-based operation. libhal-storage.c 1401 : INFO: called LIBHAL_FREE_DBUS_ERROR but dbusError was not set. Unmounted /dev/sdb2 [goetz@abgrund gnome]$ volume_uuid_2C24_FB9E property volume.mount_point = '' volume_uuid_2C24_FB9E property volume.is_mounted = false It is correct again with a CVS snapshot version of glib.
Thanks for testing this. I'll do a 2.12.6 soon
I can confirm that this is fixed in 2.12.6, thanks guys.