]> git.ipfire.org Git - thirdparty/public-inbox.git/commitdiff
f3: opendir: set keep_cache, too
authorEric Wong <e@80x24.org>
Mon, 27 Feb 2023 07:22:10 +0000 (07:22 +0000)
committerEric Wong <e@80x24.org>
Mon, 27 Feb 2023 07:31:04 +0000 (07:31 +0000)
cache_readdir and keep_cache are independent flags, so we honor
the global keep_cache.

lib/PublicInbox/f3.h

index b180d659c119765d444b473d55e6bab5f1289068..3ac3f57552a880b4f4c2b0a56f655c37a2038d6b 100644 (file)
@@ -1056,6 +1056,7 @@ f3_opendir(fuse_req_t req, fuse_ino_t ino, struct fuse_file_info *fi)
                fuse_reply_err(req, err);
        } else {
                fi->fh = -1;
+               fi->keep_cache = f3.keep_cache;
 #if FUSE_VERSION >= FUSE_MAKE_VERSION(3, 5)
                fi->cache_readdir = f3.cache_readdir;
 #endif