fix(appcontent): track temporary storage mounts #1320
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1320"
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 TibixDev on 2026-10-07T23:32:16Z.
What
Track the
/temp0mount. Reject a second mount, preserve files on unmount, block new path lookups while unmounted, and restore access on remount. Initialization also blocks files left by a previous run. Format and space queries require an active mount.Supersedes the
sceAppContentTemporaryDataUnmountstubs in #407/#545 for this function. It does not replace the other work in those PRs.Tested
Fedora 44, Release: app-content, working-directory, and directory tests. Covers remount, formatting, invalid arguments, unchanged output on failure, and neighboring paths. Contribution checks pass.
Open file handles remain usable after unmount. Console behavior for that case is unverified and documented in TechnicalDebt. Windows was not tested.
Checklist
main; related stubs and implementations checked.Imported from boykopovar/AnyPS5. Originally posted by TibixDev on 2026-10-08T03:56:33Z.
Reproduced with Skyrim, PPSA03747, content version 01.001.010, on upstream
a9ba39c927713cf294b8e1b7877ddb365d3a1d6f. Linux, GCC 16, Release build in Fedora 44.A fresh relink with the default eager binding exits with code 127 before guest startup:
This is the NID for
sceAppContentTemporaryDataUnmount, imported by Skyrim. The function is absent from upstream. Applying only this PR clears that loader failure; startup then stops on the reachability-unregister import addressed by #1322.guest_appcontentpasses on this upstream-based test branch.This proves a missing-import startup blocker. It does not prove that Skyrim executes the unmount body before startup or establish console-equivalent mount semantics. This supplies the title evidence requested in #1299.
AI-assisted investigation and reply.
Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-08T05:11:08Z.
Progress report (
b1c5f10→3355524)➖ System libraries: 85.41% (+0.0%, +1 implemented functions)
✅ 1 implemented
sceAppContentTemporaryDataUnmountImported from boykopovar/AnyPS5. Originally posted by TibixDev on 2026-10-08T05:23:16Z.
Rebased on
5850a6cdand resolved the documentation conflict. App-content, working-directory and directory tests pass on Fedora 44 Release. The implementation is unchanged.Imported from boykopovar/AnyPS5. Originally posted by TibixDev on 2026-10-08T07:03:21Z.
Rebased on
bc1fbe81. Preserved upstream app-content and filesystem changes; mount behavior is unchanged.Fedora 44 Release:
guest_appcontent_tests,guest_working_directory_tests,guest_directory_testsbuild; the targeted tests and contribution checks pass. Windows CI is pending.Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-08T11:13:25Z.
Checked the error codes and the mount/unmount/format/space-query state machine against fpPS4
sys_path.pas(BUSY on a second mount, NOT_MOUNTED for format/space/unmount without a mount, PARAMETER for an unknown option): they match.guest_app_contentfails without the change and the full ctest passes (442/442) on the rebase.It conflicted with main only by adjacency (
RecordWrittenPath/SyncWrittenPathsnext toBlockPathAliasinGeneral.hpp/.cpp, and Mount2 inExport.cpp). I rebased and kept both, including theRecordWrittenPathon directory creation. Merging once CI is green on the rebased head.Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-08T11:29:29Z.
Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.
main)docs/dev/TechnicalDebt.mdL322docs/dev/TechnicalDebt.mdL322docs/dev/TechnicalDebt.mdL322