[Pkg-utopia-maintainers] Bug#720695: [udisks2] [PATCH] Add default exfat mount options
Andrey Jr. Melnikov
temnota.am at gmail.com
Sat Aug 24 15:42:43 UTC 2013
Package: udisks2
Version: 2.1.0-4
Severity: normal
Tags: patch
--- Please enter the report below this line. ---
Add default exFAT mount options. This set of default options compatible with
exfat-fuse and exfat-nofuse kernel driver.
Without this patch user unable to use mounted drive under gnome - it's mount
with root permissions only.
--- udisks2-2.1.0.orig/src/udiskslinuxfilesystem.c 2013-07-23 06:51:10.000000000 +0000
+++ udisks2-2.1.0/src/udiskslinuxfilesystem.c 2013-08-24 14:59:54.195567080 +0000
@@ -302,6 +302,13 @@
static const gchar *udf_allow_uid_self[] = { "uid=", NULL };
static const gchar *udf_allow_gid_self[] = { "gid=", NULL };
+/* ---------------------- exfat -------------------- */
+
+static const gchar *exfat_defaults[] = { "uid=", "gid=", "iocharset=utf8", "namecase=0", "errors=remount-ro", "umask=0022", NULL };
+static const gchar *exfat_allow[] = { "dmask=", "errors=", "fmask=", "iocharset=", "namecase=", "umask=", NULL };
+static const gchar *exfat_allow_uid_self[] = { "uid=", NULL };
+static const gchar *exfat_allow_gid_self[] = { "gid=", NULL };
+
/* ------------------------------------------------ */
/* TODO: support context= */
@@ -313,6 +320,7 @@
{ "ntfs", ntfs_defaults, ntfs_allow, ntfs_allow_uid_self, ntfs_allow_gid_self },
{ "iso9660", iso9660_defaults, iso9660_allow, iso9660_allow_uid_self, iso9660_allow_gid_self },
{ "udf", udf_defaults, udf_allow, udf_allow_uid_self, udf_allow_gid_self },
+ { "exfat", exfat_defaults, exfat_allow, exfat_allow_uid_self, exfat_allow_gid_self },
};
/* ------------------------------------------------ */
--- System information. ---
Architecture: amd64
Kernel: Linux 3.10-2-amd64
Debian Release: jessie/sid
500 unstable mirror.yandex.ru
500 experimental mirror.yandex.ru
--- Package information. ---
Depends (Version) | Installed
=======================================-+-==============
libacl1 (>= 2.2.51-8) | 2.2.52-1
libatasmart4 (>= 0.13) | 0.19-2
libc6 (>= 2.7) |
libglib2.0-0 (>= 2.31.18) |
libgudev-1.0-0 (>= 165) |
libpolkit-agent-1-0 (>= 0.99) |
libpolkit-gobject-1-0 (>= 0.101) |
libudisks2-0 (>= 2.0.91) |
udev |
dbus |
Recommends (Version) | Installed
==========================-+-===========
policykit-1 | 0.110-3
dosfstools | 3.0.22-1
ntfs-3g | 1:2013.1.13AR.2-3
eject | 2.1.5+deb1+cvs20081104-13
Suggests (Version) | Installed
=============================-+-===========
xfsprogs |
reiserfsprogs |
exfat-utils |
btrfs-tools |
mdadm |
cryptsetup-bin | 2:1.6.1-1
More information about the Pkg-utopia-maintainers
mailing list