Files
sablink-distro/sys-apps/hal/files/hal-0.5.10-sabayonlinux-ntfs-3g.default.patch
T
(no author) 8b2942b01d - removed old hal ebuilds
- added our hal 0.5.10 ebuild with NTFS-3G support

git-svn-id: http://svn.sabayonlinux.org/overlay@1953 d7aec97c-591d-0410-af39-a8856400b30a
2008-02-04 09:10:03 +00:00

22 lines
829 B
Diff

diff -Nurp hal-0.5.8.1.orig/tools/hal-storage-mount.c hal-0.5.8.1/tools/hal-storage-mount.c
--- hal-0.5.8.1.orig/tools/hal-storage-mount.c
+++ hal-0.5.8.1/tools/hal-storage-mount.c
@@ -813,6 +813,17 @@ handle_mount (LibHalContext *hal_ctx,
} else if (libhal_volume_get_fstype (volume) != NULL && strlen (libhal_volume_get_fstype (volume)) > 0) {
mount_do_fstype = (char *) map_fstype (libhal_volume_get_fstype (volume));
}
+
+ /* Dirty hack while we're waiting for a better KDE support for filesystems' selection */
+ /* we are going to force NTFS-FUSE instead of NTFS */
+ if (strcmp (mount_do_fstype, "ntfs") == 0) {
+ int rc = system("which ntfs-3g");
+ if ( rc == 1 )
+ mount_do_fstype = "ntfs-fuse";
+ else
+ mount_do_fstype = "ntfs-3g";
+ }
+
args[na++] = MOUNT_TYPE_OPT;
args[na++] = mount_do_fstype;