From: Aleksandr Mikhailov Date: Thu, 3 Aug 2023 17:01:46 +0000 (+0200) Subject: Pass cache_readdir and keep_cache from high level API (#822) X-Git-Tag: fuse-3.16.1~3 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=98eb80890446c18bee0e9c5fefc5947086672ee0;p=qemu-gpiodev%2Flibfuse.git Pass cache_readdir and keep_cache from high level API (#822) * Pass cache_readdir and keep_cache from high level API * Update ChangeLog.rst --- 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) {