summaryrefslogtreecommitdiff
path: root/lib/fuse_lowlevel.c
diff options
context:
space:
mode:
authorMiklos Szeredi <mszeredi@suse.cz>2015-05-18 16:55:20 +0200
committerMiklos Szeredi <mszeredi@suse.cz>2015-05-18 16:55:20 +0200
commita5a00e9b7dd8c8dfef17523dccb3051e1f1dd5a2 (patch)
tree94f6c75df3c511fe484c0fb0f00d91994a2d9d5a /lib/fuse_lowlevel.c
parent62771d7f003c09166663b02f8d500b5cbec7dec9 (diff)
downloadfuse-clone_fd.tar.gz
libfuse: add "clone_fd" optionclone_fd
This creates a separate device file descriptor for each processing thread, which might improve performance.
Diffstat (limited to 'lib/fuse_lowlevel.c')
-rwxr-xr-xlib/fuse_lowlevel.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/fuse_lowlevel.c b/lib/fuse_lowlevel.c
index 8433e0a..05103c0 100755
--- a/lib/fuse_lowlevel.c
+++ b/lib/fuse_lowlevel.c
@@ -2657,6 +2657,7 @@ static const struct fuse_opt fuse_ll_opts[] = {
{ "writeback_cache", offsetof(struct fuse_ll, writeback_cache), 1},
{ "no_writeback_cache", offsetof(struct fuse_ll, no_writeback_cache), 1},
{ "time_gran=%u", offsetof(struct fuse_ll, conn.time_gran), 0 },
+ { "clone_fd", offsetof(struct fuse_ll, clone_fd), 1 },
FUSE_OPT_KEY("max_read=", FUSE_OPT_KEY_DISCARD),
FUSE_OPT_KEY("-h", KEY_HELP),
FUSE_OPT_KEY("--help", KEY_HELP),
@@ -2693,6 +2694,7 @@ static void fuse_ll_help(void)
" -o [no_]async_dio asynchronous direct I/O\n"
" -o [no_]writeback_cache asynchronous, buffered writes\n"
" -o time_gran=N time granularity in nsec\n"
+" -o clone_fd clone fuse device file descriptors\n"
);
}