peterdelevoryas / rpms / qemu

Forked from rpms/qemu 2 years ago
Clone

Blame 0107-virtiofsd-passthrough_ll-Use-cache_readdir-for-direc.patch

1d442b
From: Misono Tomohiro <misono.tomohiro@jp.fujitsu.com>
1d442b
Date: Mon, 27 Jan 2020 19:02:16 +0000
1d442b
Subject: [PATCH] virtiofsd: passthrough_ll: Use cache_readdir for directory
1d442b
 open
1d442b
1d442b
Since keep_cache(FOPEN_KEEP_CACHE) has no effect for directory as
1d442b
described in fuse_common.h, use cache_readdir(FOPNE_CACHE_DIR) for
1d442b
diretory open when cache=always mode.
1d442b
1d442b
Signed-off-by: Misono Tomohiro <misono.tomohiro@jp.fujitsu.com>
1d442b
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
1d442b
(cherry picked from commit 9b610b09b49b1aada256097b338d49da805da6ae)
1d442b
---
1d442b
 tools/virtiofsd/passthrough_ll.c | 2 +-
1d442b
 1 file changed, 1 insertion(+), 1 deletion(-)
1d442b
1d442b
diff --git a/tools/virtiofsd/passthrough_ll.c b/tools/virtiofsd/passthrough_ll.c
1d442b
index 4c61ac5065..79b8b71a4f 100644
1d442b
--- a/tools/virtiofsd/passthrough_ll.c
1d442b
+++ b/tools/virtiofsd/passthrough_ll.c
1d442b
@@ -1523,7 +1523,7 @@ static void lo_opendir(fuse_req_t req, fuse_ino_t ino,
1d442b
 
1d442b
     fi->fh = fh;
1d442b
     if (lo->cache == CACHE_ALWAYS) {
1d442b
-        fi->keep_cache = 1;
1d442b
+        fi->cache_readdir = 1;
1d442b
     }
1d442b
     fuse_reply_open(req, fi);
1d442b
     return;