summaryrefslogtreecommitdiff
path: root/src/device.c
diff options
context:
space:
mode:
authortuxce <tuxce.net@gmail.com>2010-03-12 13:12:41 +0100
committerMartin Pitt <martin.pitt@ubuntu.com>2010-03-12 13:12:41 +0100
commit19a54755737778e9cf1069b5cb54205228fdbfcb (patch)
tree2bfeeb2e5634369acd12cf008cd1d9fce7e979a5 /src/device.c
parentcea7a5ee228ab13e0ba31f111346131a50dea524 (diff)
Bug 25012 ­Add "usefree" to vfat available options
When mounting a vfat volume, system scan the entire partition to know free space available, using "usefree" option avoid this scan and use the free clusters info on file system. Modern kernels should not really need this any more, even on a 500 GB vfat external disk it only takes two or three seconds to probe the file system. However, this regressed in the kernel already twice in the past, so merely allowing the mount option (without making it the default) provides a workaround for such cases. Signed-off-by: Martin Pitt <martin.pitt@ubuntu.com>
Diffstat (limited to 'src/device.c')
-rw-r--r--src/device.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/device.c b/src/device.c
index 627cdae..26b7329 100644
--- a/src/device.c
+++ b/src/device.c
@@ -5830,7 +5830,7 @@ typedef struct
/* ---------------------- vfat -------------------- */
static const char *vfat_defaults[] = { "uid=", "gid=", "shortname=mixed", "dmask=0077", "utf8=1", NULL };
-static const char *vfat_allow[] = { "flush", "utf8=", "shortname=", "umask=", "dmask=", "fmask=", "codepage=", "iocharset=", NULL };
+static const char *vfat_allow[] = { "flush", "utf8=", "shortname=", "umask=", "dmask=", "fmask=", "codepage=", "iocharset=", "usefree", NULL };
static const char *vfat_allow_uid_self[] = { "uid=", NULL };
static const char *vfat_allow_gid_self[] = { "gid=", NULL };