docs(usage): say that app0 must not contain symbolic links on Linux #7592
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/7592"
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 CPritch on 2026-10-18T16:08:51Z.
What
Adds one sentence to the runtime layout section of
USAGE.md: on Linux,app0/must not contain symbolic links; use copies or hard links.sceKernelGetdirentriespasses the hostd_typethrough, so a symbolic link is listed asDT_LNKrather than as the file or directory it points to. A title that walks its directories and descends only intoDT_DIRentries skips the linked directories. Linking a dump's top-level entries intoapp0/instead of copying them is an easy thing to do with a large dump, and the result is a crash with no AnyPS5 message.Seen with PPSA04263 (GTA V) 01.010.002. With every top-level entry of
app0/a symbolic link, the title lists/app0, descends only intosce_module/(the relinker's real directory), and segfaults in title code within seconds. With the same entries as hard links it lists/app0, descends intoupdate/,ps5/andsce_sys/, and runs.strace -e trace=openat,getdents64of both runs shows the difference.This documents the current behaviour and does not change it. #4936 and #7273 report host symbolic links to titles as links.
Tested
Linux Mint 22.2, build of main
91ddd9e3a(no changes tolibkernel/Filebetween that and this branch's base,81cb86339), PPSA04263 relinked with--to-intel: two game folders that differ only in symbolic links versus hard links underapp0/, as above. The symbolic-link folder crashes at start-up, the hard-link folder does not. Not tested on Windows or macOS.tools/check_conventions.pypasses.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)Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-18T16:28:54Z.
Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.
docs/user/USAGE.mddocs/user/USAGE.mddocs/user/USAGE.mddocs/user/USAGE.mddocs/user/USAGE.mddocs/user/USAGE.mddocs/user/USAGE.mddocs/user/USAGE.mddocs/user/USAGE.mddocs/user/USAGE.mdImported from boykopovar/AnyPS5. Originally posted by jotitadev on 2026-10-18T18:35:49Z.
Review: COMMENTED
The same applies to macOS hosts once the macOS series lands, so "On Linux" may be too narrow.
605298a4e) adds an__APPLE__sceKernelGetdirentriesincore/libs/prx/libkernel/File/src/Stdio.cppthat lists throughfdopendir/readdirand copies the host type unchanged (out[6] = static_cast<char>(entry->d_type);). Its debt entry says so too: "d_typeis the host's, whose values equal FreeBSD's".DT_LNK, notDT_DIR. A minimalreaddirprobe (arm64, macOS 27.2, APFS) overapp0/{real/, linked -> real}:So a title that descends only into
DT_DIRentries skips a linked directory on macOS as well. On APFS,cp -cclones are an extra option besides copies and hard links: they take no extra space.Suggestion: "On Linux and macOS,
app0/must not contain symbolic links ...". Windows not checked.Written with AI assistance (Claude Code). I ran the checks above on my machine.
Imported from boykopovar/AnyPS5. Originally posted by CPritch on 2026-10-18T18:59:46Z.
Thanks for checking APFS. macOS support isn’t in main yet, so I’d keep this sentence to Linux for now and widen it to “On Linux and macOS” when #7332 lands, either here if this is still open or as a one-line follow-up. The cp -c clone note fits better in that change too.
Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-19T17:37:08Z.
Checked the claim against
sceKernelGetdirentries(Stdio.cpp:1078copies the hostd_type, so a symlink is listed asDT_LNK); the sentence is accurate and docs-only; merged.