2006/05/16

HAL, FUSE, KDE

HAL - Hardware abstraction layer
FUSE - Filesystem in user space
HAL has no idea about FUSE mounts, and FUSE mounts are considered "unmounted" in HAL, so if we use NTFS project's FUSE ntfsmount program to mount NTFS partitions, it will be shown as "unmounted" in HAL and hence in KDE.
I've added some code to HAL to check if the file system is "fuse", then use other method to check the device and the mount points, as FUSE won't give HAL the mounted device's major and minor number, ie. the device file can't be retrieved.
But /proc/mounts has entry of it! So I make use of the entry to workaround the problem of HAL and FUSE. :)