From: Miklos Szeredi Date: Mon, 9 Jan 2006 11:33:04 +0000 (+0000) Subject: fix X-Git-Tag: fuse_2_5_0_pre2~3 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=cb075c8f3c764faf2d2ad9584261db357c1cb174;p=qemu-gpiodev%2Flibfuse.git fix --- 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 * 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} };