Description: Add exFAT options support Adds support for passing options to exFAT filesystem. The set of options is the same as for ntfs-3g, because exfat-fuse seems to take the same basic options. --- The information above should follow the Patch Tagging Guidelines, please checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here are templates for supplementary fields that you might want to add: Origin: , Bug: Bug-Debian: http://bugs.debian.org/ Bug-Ubuntu: https://launchpad.net/bugs/ Forwarded: Reviewed-By: Last-Update: --- udisks-1.0.4.orig/src/device.c +++ udisks-1.0.4/src/device.c @@ -5909,6 +5909,14 @@ static const char *vfat_allow[] = { "flu static const char *vfat_allow_uid_self[] = { "uid=", NULL }; static const char *vfat_allow_gid_self[] = { "gid=", NULL }; +/* ---------------------- exfat -------------------- */ +/* this is assuming that fuse exfat is used */ + +static const char *exfat_defaults[] = { NULL }; //exFAT doesn't allow later parameters to overwrite earlier ones, so we can't really have any defaults here... +static const char *exfat_allow[] = { "umask=", "dmask=", "fmask=", NULL }; +static const char *exfat_allow_uid_self[] = { "uid=", NULL }; +static const char *exfat_allow_gid_self[] = { "gid=", NULL }; + /* ---------------------- ntfs -------------------- */ /* this is assuming that ntfs-3g is used */ @@ -5940,6 +5948,7 @@ static const FSMountOptions fs_mount_opt { { "vfat", vfat_defaults, vfat_allow, vfat_allow_uid_self, vfat_allow_gid_self }, { "ntfs", ntfs_defaults, ntfs_allow, ntfs_allow_uid_self, ntfs_allow_gid_self }, + { "exfat", exfat_defaults, exfat_allow, exfat_allow_uid_self, exfat_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 }, }; --- udisks-1.0.4.orig/src/daemon.c +++ udisks-1.0.4/src/daemon.c @@ -386,6 +386,22 @@ static const Filesystem known_file_syste FALSE, /* supports_online_resize_shrink */ }, { + "exfat", /* id */ + "exFAT", /* name */ + FALSE, /* supports_unix_owners */ + TRUE, /* can_mount */ + TRUE, /* can_create */ + 16, /* max_label_len */ + TRUE, /* supports_label_rename */ + FALSE, /* supports_online_label_rename*/ + FALSE, /* supports_fsck */ + FALSE, /* supports_online_fsck */ + FALSE, /* supports_resize_enlarge */ + FALSE, /* supports_online_resize_enlarge */ + FALSE, /* supports_resize_shrink */ + FALSE, /* supports_online_resize_shrink */ + }, + { "nilfs2", /* id */ "NILFS2", /* name */ TRUE, /* supports_unix_owners */