[RFC PATCH v3 0/8] fuse: caches documentation and testing

From: Luis Henriques

Date: Fri Sep 04 2026 - 06:45:29 EST


Hi.

Here's v3 of this patchset. It mostly tries to fix all the problems with v2
(i.e. it does not add any new tests or documents any other cache type).

I tried to address all comments from Amir, and also from sashiko[1]. (Some
of sashiko comments for the tests were incorrect, probably due to it being
trained with old versions of libfuse...?)

Hopefully, the text now contains less mistakes and is more readable.

[1] https://sashiko.dev/#/patchset/20260817141156.6079-1-luis%40igalia.com

Luis Henriques (8):
Documentation: fuse: add document on caches being used by FUSE
selftests/fuse: convert fusectl test to fuse3
selftests/fuse: check that fusectlfs is mounted
selftests/fuse: factor-out test fixture setup/teardown
selftests/fuse: use dynamically allocated memory to store ACLs
selftests/fuse: add some extra ACL caching tests
selftests/fuse: add fuse symlink caching test
selftests/fuse: add fuse readdir caching test

.../filesystems/fuse/fuse-caches.rst | 158 ++++++++++
.../selftests/filesystems/fuse/.gitignore | 3 +
.../selftests/filesystems/fuse/Makefile | 28 +-
.../filesystems/fuse/fuse_acl_cache_test.c | 271 +++++++++++++----
.../selftests/filesystems/fuse/fuse_common.c | 60 ++++
.../selftests/filesystems/fuse/fuse_common.h | 25 ++
.../selftests/filesystems/fuse/fuse_mnt.c | 17 +-
.../fuse/fuse_readdir_cache_test.c | 274 ++++++++++++++++++
.../fuse/fuse_symlink_cache_test.c | 167 +++++++++++
.../selftests/filesystems/fuse/fusectl_test.c | 9 +-
10 files changed, 934 insertions(+), 78 deletions(-)
create mode 100644 Documentation/filesystems/fuse/fuse-caches.rst
create mode 100644 tools/testing/selftests/filesystems/fuse/fuse_common.c
create mode 100644 tools/testing/selftests/filesystems/fuse/fuse_common.h
create mode 100644 tools/testing/selftests/filesystems/fuse/fuse_readdir_cache_test.c
create mode 100644 tools/testing/selftests/filesystems/fuse/fuse_symlink_cache_test.c