fix
authorMiklos Szeredi <miklos@szeredi.hu>
Mon, 9 Jan 2006 11:33:04 +0000 (11:33 +0000)
committerMiklos Szeredi <miklos@szeredi.hu>
Mon, 9 Jan 2006 11:33:04 +0000 (11:33 +0000)
ChangeLog
lib/mount.c
util/fusermount.c

index d472ca89519feb2faf18790122c40bca00530472..54053b55e7f30a0f13c82e4b56194257e37f1180 100644 (file)
--- 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
index 91d96f48db0e3d4d9dcd6f10ffc48dffa4d8815a..219ee1419ea7b1db849ff204a16d5f7f2d0f9a48 100644 (file)
@@ -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),
index abe78b91ae1e6bdd4db990fb1d5c46e3f063ef16..1f6e90db072906d3058c8964bfa768250f75ee2e 100644 (file)
 #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}
 };