Keep records on other filesystems under an operand with -x (closes #99)
check / check (push) Canceled after 0s

With -x the walk does not enter a directory on another filesystem than
its operand, but the update phase still deleted every record below it.
A separate scan of a filesystem mounted under the operand therefore lost
its records on every -x scan and re-hashed its whole tree.

The walk now sends an event naming each directory it declines this way,
and the walk phase treats the records below those directories like
records outside the operands: they are not deleted, and their sizes join
the size census. README "scan mode" and "Rules for the walk" state the
rule.

Model: opus-5-5
This commit was merged in pull request #105.
This commit is contained in:
2026-10-14 20:22:50 +02:00
parent 5dc6bfb6b7
commit 80bd7c0999
4 changed files with 134 additions and 12 deletions
+4
View File
@@ -29,6 +29,10 @@
# Completed Steps
- with `-x`, `scan` keeps the records below a directory on another filesystem
under its operand, and counts their sizes in the size census, instead of
deleting them (2026-10-14, https://git.eeqj.de/sneak/sfdupes/issues/99)
- the hash and content phases open each file without blocking and check that it
is still a regular file, so one replaced by a FIFO or device node after it was
statted is warned about and skipped instead of hanging the scan (2026-10-14,