diff options
Diffstat (limited to 'example')
-rw-r--r-- | example/passthrough_ll.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/example/passthrough_ll.c b/example/passthrough_ll.c index 5f1fde9..e1a36ef 100644 --- a/example/passthrough_ll.c +++ b/example/passthrough_ll.c @@ -652,8 +652,10 @@ static void lo_opendir(fuse_req_t req, fuse_ino_t ino, struct fuse_file_info *fi d->entry = NULL; fi->fh = (uintptr_t) d; - if (lo->cache == CACHE_ALWAYS) + if (lo->cache != CACHE_NEVER) fi->cache_readdir = 1; + if (lo->cache == CACHE_ALWAYS) + fi->keep_cache = 1; fuse_reply_open(req, fi); return; |