diff options
author | Misono Tomohiro <misono.tm@gmail.com> | 2020-01-25 00:53:32 +0900 |
---|---|---|
committer | Nikolaus Rath <Nikolaus@rath.org> | 2020-01-24 15:53:32 +0000 |
commit | 1caba629ff8e718a5af054be71338a8c3cb84d62 (patch) | |
tree | d8dfcd19b042389ea0d3dc3857ea70b744639509 /example | |
parent | aa1185e153f774f1df65565f6a6fa2fb1c8cf3f3 (diff) | |
download | libfuse-1caba629ff8e718a5af054be71338a8c3cb84d62.tar.gz |
passthrough_ll: Use cache_readdir for directory open (#492)
Upstreamed from:
https://www.redhat.com/archives/virtio-fs/2020-January/msg00106.html
Since keep_cache(FOPEN_KEEP_CACHE) has no effect for directory as
described in fuse_common.h, use cache_readdir(FOPEN_CACHE_DIR) for
diretory open when cache=always mode.
Signed-off-by: Misono Tomohiro <misono.tomohiro@jp.fujitsu.com>
Diffstat (limited to 'example')
-rw-r--r-- | example/passthrough_ll.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/example/passthrough_ll.c b/example/passthrough_ll.c index d80b493..c31dbe5 100644 --- a/example/passthrough_ll.c +++ b/example/passthrough_ll.c @@ -630,7 +630,7 @@ static void lo_opendir(fuse_req_t req, fuse_ino_t ino, struct fuse_file_info *fi fi->fh = (uintptr_t) d; if (lo->cache == CACHE_ALWAYS) - fi->keep_cache = 1; + fi->cache_readdir = 1; fuse_reply_open(req, fi); return; |