aboutsummaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorGravatar Miklos Szeredi <miklos@szeredi.hu>2004-07-02 09:22:50 +0000
committerGravatar Miklos Szeredi <miklos@szeredi.hu>2004-07-02 09:22:50 +0000
commitad051c3e27ca6dd57dad57eb188dbcdcfab775fe (patch)
treebdee0dd43c6d75dcff037de88d3e3679a0ab34f7 /util
parent65cf7c7deb7a98dc31beb39db3c1ae1cba45b69f (diff)
direct IO + fixes
Diffstat (limited to 'util')
-rw-r--r--util/fusermount.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/util/fusermount.c b/util/fusermount.c
index bd52e4a..e837eb2 100644
--- a/util/fusermount.c
+++ b/util/fusermount.c
@@ -46,6 +46,7 @@ struct fuse_opts {
int default_permissions;
int allow_other;
int large_read;
+ int direct_io;
};
static const char *get_user_name()
@@ -318,6 +319,8 @@ static int do_mount(const char *dev, const char *mnt, const char *type,
s += sprintf(s, ",allow_other");
if (opts->large_read)
s += sprintf(s, ",large_read");
+ if (opts->direct_io)
+ s += sprintf(s, ",direct_io");
res = mount(dev, mnt, type, flags, optbuf);
if(res == -1)
@@ -496,6 +499,7 @@ static void usage()
" -x allow other users to access the files (only for root)\n"
" -n name add 'name' as the filesystem name to mtab\n"
" -l issue large reads\n"
+ " -r raw I/O\n"
" -q quiet: don't complain if unmount fails\n"
" -z lazy unmount\n",
progname);
@@ -567,6 +571,10 @@ int main(int argc, char *argv[])
case 'l':
opts.large_read = 1;
break;
+
+ case 'r':
+ opts.direct_io = 1;
+ break;
case 'q':
quiet = 1;