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