diff options
author | Nikolaus Rath <Nikolaus@rath.org> | 2019-04-06 18:34:57 +0100 |
---|---|---|
committer | Nikolaus Rath <Nikolaus@rath.org> | 2019-04-06 18:34:57 +0100 |
commit | 1552b467fcd7751360299c5139382d78538e12b3 (patch) | |
tree | 157c065aeeee995ce35547da8bf60259d1b9e770 /lib | |
parent | 4ae58ffd9b149cc3d7aeea72d4d51248a77af39b (diff) | |
download | libfuse-1552b467fcd7751360299c5139382d78538e12b3.tar.gz |
Add support for in-kernel readdir caching.
Fixes: #394.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/fuse_lowlevel.c | 2 |
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; } |