fix(savedata): recover interrupted backup replacement #15943
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/15943"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by nikhilpanchal1 on 2026-11-05T01:57:48Z.
What
Recover a complete host backup left in
_sd_backup_oldafter interrupted replacement, before checking, restoring or making another backup. Retain a complete published copy, retry abandoned-copy cleanup, and remove every recovery copy on successful deletion. A failed live-tree or metadata deletion preserves the backup.Adds fresh-process interruption, real permission failure, metadata-removal failure, cleanup, rollback, corruption-layout and linked-path regressions. Structural checks do not verify payload or block-sidecar content integrity. This follows up #12748; it does not implement #8005 transaction semantics.
Tested
Linux x86-64, Debian 13, GCC 14.2, Release, pinned bundled dependencies. Current upstream base
acac7c8541; final headd7246f0d04. The reviewed SaveData files are identical toe087280bfbafter merging the unrelated upstream graphics revert.libs/relinkerbuild and patched-library loading pass.0eba5db30dand current base); mount-status passes. Both new deletion-failure regressions fail on initial head247921582aand pass here. Fault-injection rollback coverage supplements those behavioral controls.guest_savedata_dialogfails identically on main: this cloud kernel lacksprocess_vm_readv(errno 38). No new failure or skip.No Windows, title, console, power-loss or concurrent-writer qualification. Deletion remains nontransactional; backup-cleanup failure may partially remove its copy. Live-tree/metadata deletion failures preserve backups. Interrupted live restores and
Prepare/Commitremain unsupported.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)