After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 387823 - glib 2.12.5 is breaking hal
glib 2.12.5 is breaking hal
Status: RESOLVED FIXED
Product: glib
Classification: Platform
Component: general
2.12.x
Other Linux
: Normal normal
: ---
Assigned To: gtkdev
gtkdev
Depends on:
Blocks:
 
 
Reported: 2006-12-20 08:20 UTC by Götz Waschk
Modified: 2006-12-20 18:18 UTC
See Also:
GNOME target: ---
GNOME version: 2.17/2.18



Description Götz Waschk 2006-12-20 08:20:23 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.
Comment 1 Matthias Clasen 2006-12-20 15:19:17 UTC
Can you test if cvs works better ?
Comment 2 David Zeuthen (not reading bugmail) 2006-12-20 15:23:19 UTC
Nothing in hal proper uses GKeyFile...  Götz, care to elaborate? Should probably include things like output of 'lshal --monitor' etc. Thanks.
Comment 3 Götz Waschk 2006-12-20 15:32:28 UTC
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
Comment 4 Götz Waschk 2006-12-20 16:06:13 UTC
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.


Comment 5 Matthias Clasen 2006-12-20 16:09:11 UTC
Thanks for testing this. I'll do a 2.12.6 soon
Comment 6 Götz Waschk 2006-12-20 18:18:54 UTC
I can confirm that this is fixed in 2.12.6, thanks guys.