Pass cache_readdir and keep_cache from high level API (#822)
authorAleksandr Mikhailov <AM5800@users.noreply.github.com>
Thu, 3 Aug 2023 17:01:46 +0000 (19:01 +0200)
committerGitHub <noreply@github.com>
Thu, 3 Aug 2023 17:01:46 +0000 (18:01 +0100)
* Pass cache_readdir and keep_cache from high level API

* Update ChangeLog.rst

ChangeLog.rst
lib/fuse.c

index 4515c1be9cfc12f3d68a7874fda528239cc20cf4..1a3f2d4c0a91ce5c145f22c1963fdd4e9d696155 100644 (file)
@@ -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)
 ===========================
 
index a35c70aab6b932d0199c1b350af98a12342db25a..2a88918a4b5da50946a8ecfc84a7cfca1f64f541 100644 (file)
@@ -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) {