]> git.hungrycats.org Git - bees/commit
fdcache: throw on open errors other than ENOENT
authorZygo Blaxell <bees@furryterror.org>
Sat, 10 Oct 2026 23:55:27 +0000 (19:55 -0400)
committerZygo Blaxell <bees@furryterror.org>
Sun, 11 Oct 2026 00:48:00 +0000 (20:48 -0400)
commit59ffb8ccf33bfc51fc4cd25ce5ff9add44275fec
tree68801e172c8da44096d3aed07d8b1bc5742045d3
parent5b0724aa68a00516567b1ff462a7bae2cdc5f1c2
fdcache: throw on open errors other than ENOENT

open_root and open_root_ino returned an empty Fd for every failure, so a
caller could not tell a deleted file from an I/O error, and the scan-next
executor skipped a dst ref that failed with EIO instead of aborting the
dst plan.

ENOENT stays a quiet empty Fd: deleted files and subvols are common, and
logging each one would flood the log.  Every other INO_PATHS or openat
error now throws, and so does a validation failure (wrong inode, root, or
device).  For a file with several paths, a failed path is remembered and
the rest are tried; the error is thrown only if none opens.

Assisted-by: Claude-Code:claude-opus-5-5
docs/event-counters.md
src/bees-fdcache.cc