aboutsummaryrefslogtreecommitdiff
path: root/tools/virtiofsd
diff options
context:
space:
mode:
authorMisono Tomohiro <misono.tomohiro@jp.fujitsu.com>2020-01-20 11:53:30 +0900
committerDr. David Alan Gilbert <dgilbert@redhat.com>2020-01-23 16:41:37 +0000
commit9b610b09b49b1aada256097b338d49da805da6ae (patch)
treecd10c6704989090604dab4107431e741ce9d573c /tools/virtiofsd
parent8e4e41e39eac5ee5f378d66f069a2f70a1734317 (diff)
downloadqemu-9b610b09b49b1aada256097b338d49da805da6ae.zip
qemu-9b610b09b49b1aada256097b338d49da805da6ae.tar.gz
qemu-9b610b09b49b1aada256097b338d49da805da6ae.tar.bz2
virtiofsd: passthrough_ll: Use cache_readdir for directory open
Since keep_cache(FOPEN_KEEP_CACHE) has no effect for directory as described in fuse_common.h, use cache_readdir(FOPNE_CACHE_DIR) for diretory open when cache=always mode. Signed-off-by: Misono Tomohiro <misono.tomohiro@jp.fujitsu.com> Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Diffstat (limited to 'tools/virtiofsd')
-rw-r--r--tools/virtiofsd/passthrough_ll.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/virtiofsd/passthrough_ll.c b/tools/virtiofsd/passthrough_ll.c
index 4c61ac5..79b8b71 100644
--- a/tools/virtiofsd/passthrough_ll.c
+++ b/tools/virtiofsd/passthrough_ll.c
@@ -1523,7 +1523,7 @@ static void lo_opendir(fuse_req_t req, fuse_ino_t ino,
fi->fh = fh;
if (lo->cache == CACHE_ALWAYS) {
- fi->keep_cache = 1;
+ fi->cache_readdir = 1;
}
fuse_reply_open(req, fi);
return;