You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(backup): verify and restore archives from read-only sources #1285
PR #1261 currently creates verification scratch files beside the source archive. A readable archive on a read-only USB mount, or in a directory the caller cannot write, therefore cannot be inspected or restored even when the target has space and write access.
This is a candidate regression identified in the review of cee71eaf825d26b4281fece52c243cb32fd614c2, not a claim that it has shipped.
Keep creation on its preflighted output filesystem. Restore must use its writable target. Standalone verification should preserve the same-filesystem preference for large archives but support a writable temporary workspace for read-only sources.
Acceptance: create a synthetic backup containing a saved EV goal, remove source-directory write access, then verify, restore and restore into an existing mount. Preserve the goal, clean scratch files and retain the existing test with unavailable TMPDIR when the archive filesystem is writable.
The read-only source fix is present in current master. TestReadOnlyArchiveCanBeVerifiedAndRestored passed three times with the race detector: it removes directory write access, verifies from that source, restores into an existing target with unavailable TMPDIR, and checks the saved EV goal. The test ran without skipping. Creation still uses its preflighted output workspace.
Activity
frahlg commentedon Oct 18, 2026
The read-only source fix is present in current master.
TestReadOnlyArchiveCanBeVerifiedAndRestoredpassed three times with the race detector: it removes directory write access, verifies from that source, restores into an existing target with unavailable TMPDIR, and checks the saved EV goal. The test ran without skipping. Creation still uses its preflighted output workspace.