Blame SOURCES/kvm-virtiofsd-passthrough_ll-Use-cache_readdir-for-direc.patch

ddf19c
From 83b03fc4a3ecf6086394363488bbebc8d55428c0 Mon Sep 17 00:00:00 2001
ddf19c
From: "Dr. David Alan Gilbert" <dgilbert@redhat.com>
ddf19c
Date: Mon, 27 Jan 2020 19:02:16 +0100
ddf19c
Subject: [PATCH 105/116] virtiofsd: passthrough_ll: Use cache_readdir for
ddf19c
 directory open
ddf19c
MIME-Version: 1.0
ddf19c
Content-Type: text/plain; charset=UTF-8
ddf19c
Content-Transfer-Encoding: 8bit
ddf19c
ddf19c
RH-Author: Dr. David Alan Gilbert <dgilbert@redhat.com>
ddf19c
Message-id: <20200127190227.40942-102-dgilbert@redhat.com>
ddf19c
Patchwork-id: 93555
ddf19c
O-Subject: [RHEL-AV-8.2 qemu-kvm PATCH 101/112] virtiofsd: passthrough_ll: Use cache_readdir for directory open
ddf19c
Bugzilla: 1694164
ddf19c
RH-Acked-by: Philippe Mathieu-Daudé <philmd@redhat.com>
ddf19c
RH-Acked-by: Stefan Hajnoczi <stefanha@redhat.com>
ddf19c
RH-Acked-by: Sergio Lopez Pascual <slp@redhat.com>
ddf19c
ddf19c
From: Misono Tomohiro <misono.tomohiro@jp.fujitsu.com>
ddf19c
ddf19c
Since keep_cache(FOPEN_KEEP_CACHE) has no effect for directory as
ddf19c
described in fuse_common.h, use cache_readdir(FOPNE_CACHE_DIR) for
ddf19c
diretory open when cache=always mode.
ddf19c
ddf19c
Signed-off-by: Misono Tomohiro <misono.tomohiro@jp.fujitsu.com>
ddf19c
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
ddf19c
(cherry picked from commit 9b610b09b49b1aada256097b338d49da805da6ae)
ddf19c
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
ddf19c
---
ddf19c
 tools/virtiofsd/passthrough_ll.c | 2 +-
ddf19c
 1 file changed, 1 insertion(+), 1 deletion(-)
ddf19c
ddf19c
diff --git a/tools/virtiofsd/passthrough_ll.c b/tools/virtiofsd/passthrough_ll.c
ddf19c
index 4c61ac5..79b8b71 100644
ddf19c
--- a/tools/virtiofsd/passthrough_ll.c
ddf19c
+++ b/tools/virtiofsd/passthrough_ll.c
ddf19c
@@ -1523,7 +1523,7 @@ static void lo_opendir(fuse_req_t req, fuse_ino_t ino,
ddf19c
 
ddf19c
     fi->fh = fh;
ddf19c
     if (lo->cache == CACHE_ALWAYS) {
ddf19c
-        fi->keep_cache = 1;
ddf19c
+        fi->cache_readdir = 1;
ddf19c
     }
ddf19c
     fuse_reply_open(req, fi);
ddf19c
     return;
ddf19c
-- 
ddf19c
1.8.3.1
ddf19c