aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiklos Szeredi <miklos@szeredi.hu>2006-01-09 11:33:04 +0000
committerMiklos Szeredi <miklos@szeredi.hu>2006-01-09 11:33:04 +0000
commitcb075c8f3c764faf2d2ad9584261db357c1cb174 (patch)
tree0b89cc9b5be0d7fadbe5cc22db09d983a28a75b7
parentb32c79b97079d2de63213bbeb12d3bf57e7e6643 (diff)
downloadlibfuse-cb075c8f3c764faf2d2ad9584261db357c1cb174.tar.gz
fix
-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}
};