aboutsummaryrefslogtreecommitdiffstats
path: root/lib/fuse_lowlevel.c
diff options
context:
space:
mode:
authorNikolaus Rath <Nikolaus@rath.org>2019-04-06 18:34:57 +0100
committerNikolaus Rath <Nikolaus@rath.org>2019-04-06 18:34:57 +0100
commit1552b467fcd7751360299c5139382d78538e12b3 (patch)
tree157c065aeeee995ce35547da8bf60259d1b9e770 /lib/fuse_lowlevel.c
parent4ae58ffd9b149cc3d7aeea72d4d51248a77af39b (diff)
downloadlibfuse-1552b467fcd7751360299c5139382d78538e12b3.tar.gz
Add support for in-kernel readdir caching.
Fixes: #394.
Diffstat (limited to 'lib/fuse_lowlevel.c')
-rw-r--r--lib/fuse_lowlevel.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/fuse_lowlevel.c b/lib/fuse_lowlevel.c
index 78ee63b..50fff4d 100644
--- a/lib/fuse_lowlevel.c
+++ b/lib/fuse_lowlevel.c
@@ -392,6 +392,8 @@ static void fill_open(struct fuse_open_out *arg,
arg->open_flags |= FOPEN_DIRECT_IO;
if (f->keep_cache)
arg->open_flags |= FOPEN_KEEP_CACHE;
+ if (f->cache_readdir)
+ arg->open_flags |= FOPEN_CACHE_DIR;
if (f->nonseekable)
arg->open_flags |= FOPEN_NONSEEKABLE;
}