From 98eb80890446c18bee0e9c5fefc5947086672ee0 Mon Sep 17 00:00:00 2001 From: Aleksandr Mikhailov Date: Thu, 3 Aug 2023 19:01:46 +0200 Subject: [PATCH] Pass cache_readdir and keep_cache from high level API (#822) * Pass cache_readdir and keep_cache from high level API * Update ChangeLog.rst --- ChangeLog.rst | 5 +++++ lib/fuse.c | 2 ++ 2 files changed, 7 insertions(+) diff --git a/ChangeLog.rst b/ChangeLog.rst index 4515c1b..1a3f2d4 100644 --- a/ChangeLog.rst +++ b/ChangeLog.rst @@ -1,3 +1,8 @@ +libfuse next.release.version (xxxx-xx-xx) +=========================== + +* Readdir kernel cache can be enabled from high-level API. + libfuse 3.15.1 (2023-07-05) =========================== diff --git a/lib/fuse.c b/lib/fuse.c index a35c70a..2a88918 100644 --- a/lib/fuse.c +++ b/lib/fuse.c @@ -3374,6 +3374,8 @@ static void fuse_lib_opendir(fuse_req_t req, fuse_ino_t ino, err = fuse_fs_opendir(f->fs, path, &fi); fuse_finish_interrupt(f, req, &d); dh->fh = fi.fh; + llfi->cache_readdir = fi.cache_readdir; + llfi->keep_cache = fi.keep_cache; } if (!err) { if (fuse_reply_open(req, llfi) == -ENOENT) { -- 2.30.2