Files
linux/tools/testing
Sasha Levin aba9df1806 selftests/fuse: add the missing symlink caching test
Commit 3e14f079d7 ("selftests/fuse: add fuse symlink caching test")
registered fuse_symlink_cache_test in the fuse selftest Makefile and
.gitignore, but the test source was not part of the applied commit, so
building the fuse selftests fails:

  make[1]: *** No rule to make target 'fuse_symlink_cache_test.c', needed by '.../fuse_symlink_cache_test'.

Add fuse_symlink_cache_test.c as posted in Luis Henriques's v5
submission. The test serves a file and a symlink to it from a libfuse
low-level filesystem, resolves the symlink 100 times, and counts the
readlink requests that reach the server: one when FUSE_CAP_CACHE_SYMLINKS
is set during FUSE_INIT, and all 100 when it is not.

Fixes: 3e14f079d7 ("selftests/fuse: add fuse symlink caching test")
Reported-by: kernel test robot <[email protected]>
Closes: https://lore.kernel.org/r/[email protected]/
Link: https://lore.kernel.org/r/[email protected]
Originally-by: Luis Henriques <[email protected]>
Signed-off-by: Sasha Levin <[email protected]>
Reviewed-by: Luis Henriques <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
2026-10-30 14:22:37 -10:00
..
2026-10-21 11:58:21 +02:00