Commit Graph
4 Commits
Author SHA1 Message Date
Chris LuandClaude Opus 5.5 fd045baa4c shell: fs.verify treats a cut-short restore index as unreadable
A partial trailing record was skipped, so its key read as absent and
-pruneEntries could delete an entry the source still held.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-06 01:15:28 -08:00
Chris LuandClaude Opus 5.5 4cc4180aa6 shell: fs.verify keeps an entry the restore source may still hold
With -restoreFrom and -pruneEntries, a missing needle the source could
not be read for (an unreadable .idx or a .dat read error), or held
intact but skipped (a cipher-key chunk, a volume-level manifest), let
the entry be pruned, deleting the file whose bytes were on hand.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-06 00:55:28 -08:00
Chris LuandClaude Opus 5.5 9d0c5ffe6a shell: fs.verify -restoreFrom loads a volume's index on its first lookup
Pointed at a data directory, the restore source read every .idx into
memory before verification began, though missing chunks usually name
few of those volumes, and one unreadable .idx stopped the whole run.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-06 00:53:11 -08:00
Chris Lu 9da5893425 shell: read needles from leftover volume files for fs.verify restores
A restore source opens <collection>_<vid>.dat/.idx or <vid>.dat/.idx files
read-only and maps each key to its last live .idx record. A later tombstone
does not hide an earlier record, since a filer may still reference the
needle. Reads check the record's key, the file id's cookie and the CRC.
2026-12-05 23:59:12 -08:00