Files
Daniel BrunthalerandClaude Opus 5.5 aa8ceb2940 vfs/vfstest: skip entries which vanish between readdir and stat
Before this change TestMount for cmount on Linux failed from time to
time with

    lstat /tmp/rclonefs-mount.../.fuse_hidden0000002200000001: no such file or directory

libfuse renames a file which is removed while still open to
.fuse_hidden* and removes it once the last handle is released. If the
test suite lists the directory in between, os.ReadDir returns the entry
but entry.Info() fails with ENOENT. readLocalEx then aborts the test
with require.NoError instead of letting the retry loop in checkDir run,
and the file the aborted test created is left behind, so the following
tests fail as well.

ioutil.ReadDir skipped such entries, but this was lost when it was
replaced by os.ReadDir and entry.Info() in 5d6b8141e. realOs.ReadDir now
skips entries which no longer exist again.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 18:21:41 +00:00
..
2020-10-14 15:21:31 +01:00
2024-12-13 12:43:20 +00:00
2026-11-18 11:22:08 +00:00
2024-12-13 12:43:20 +00:00
2025-10-03 17:10:24 +01:00
2025-09-26 15:18:02 +01:00