aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog2
-rw-r--r--lib/mount.c1
-rw-r--r--util/fusermount.c5
3 files changed, 8 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index d472ca8..54053b5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -6,6 +6,8 @@
* Ignore auto,noauto,... options in mount.fuse. Reported by Frank
Steiner and Don Taber
+ * fusermount: add 'dirsync' mount option
+
2006-01-07 Miklos Szeredi <miklos@szeredi.hu>
* Improved help reporting and added version reporting to library
diff --git a/lib/mount.c b/lib/mount.c
index 91d96f4..219ee14 100644
--- a/lib/mount.c
+++ b/lib/mount.c
@@ -59,6 +59,7 @@ static const struct fuse_opt fuse_mount_opts[] = {
FUSE_OPT_KEY("noexec", KEY_KERN),
FUSE_OPT_KEY("async", KEY_KERN),
FUSE_OPT_KEY("sync", KEY_KERN),
+ FUSE_OPT_KEY("dirsync", KEY_KERN),
FUSE_OPT_KEY("atime", KEY_KERN),
FUSE_OPT_KEY("noatime", KEY_KERN),
FUSE_OPT_KEY("-h", KEY_HELP),
diff --git a/util/fusermount.c b/util/fusermount.c
index abe78b9..1f6e90d 100644
--- a/util/fusermount.c
+++ b/util/fusermount.c
@@ -46,6 +46,10 @@
#define FUSE_VERSION_FILE_OLD "/proc/fs/fuse/version"
#define FUSE_CONF "/etc/fuse.conf"
+#ifndef MS_DIRSYNC
+#define MS_DIRSYNC 128
+#endif
+
static const char *progname;
static int user_allow_other = 0;
@@ -431,6 +435,7 @@ static struct mount_flags mount_flags[] = {
{"sync", MS_SYNCHRONOUS, 1, 1},
{"atime", MS_NOATIME, 0, 1},
{"noatime", MS_NOATIME, 1, 1},
+ {"dirsync", MS_DIRSYNC, 1, 1},
{NULL, 0, 0, 0}
};