Introduce "relocated" state to unify and replace "copied/removed" logic

This commit is contained in:
Andrea Mazzoleni 2026-03-14 17:48:30 +01:00
parent 189029749e
commit c449864fc7
9 changed files with 167 additions and 64 deletions

View file

@ -793,15 +793,23 @@ They are identified by having the same name, size, timestamp,
and inode, but a different directory.
.HP 4
.I copied
Files copied on the same or a different disk. Note that if
they are truly moved to a different disk, they will also be
counted in \`removed\`.
They are identified by having the same name, size, and
timestamp. If the sub\-second timestamp is zero,
the full path must match, not just the name.
Files copied on the same or a different disk where the
original file still exists. They are identified by having
the same name, size, and timestamp. If the sub\-second
timestamp is zero, the full path must match to be
identified, not just the name.
.HP 4
.I relocated
Files moved on the same or a different disk where
the original has disappeared. They are identified by
having the same name, size, and timestamp. If the
sub\-second timestamp is zero, the full path must match
to be identified. Unlike \'moved\' files on the same disk,
relocated files have a different inode.
.HP 4
.I restored
Files with a different inode but matching name, size, and timestamp.
Files with a different inode but matching directory,
name, size, and timestamp.
These are usually files restored after being deleted.
.PD
.RE