fix(libc): list the directory once for a missing path that may be a relinked module #6230
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/6230"
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 oneandonlydean on 2026-10-15T05:48:37Z.
What
Since #5434, a read-only open,
sceKernelStatorsceKernelCheckReachabilityof a missing path lists its directory twice: once inResolveHostPathfor a case-insensitive match of the name, and again inRelinkedModulePath_nid_no_patchfor<name>.guest.prx. Both names are now matched in the same listing. Which path is returned and the ambiguous-name errors stay the same as after #5434.RelinkedModulePath_nid_no_patchis unchanged for the dynamic loader.Tested
Linux, RTX GPU. A title that probes ~17k missing files in directories of up to 11k entries while it loads its first level: the second listing cost 12.1 s (16,764 listings) between pressing Start and the level starting. Frames from the second press to the level start, alternating runs with warm caches: main 634 / 599 / 589, this PR 377 / 366 / 376. In-level FPS unchanged. A second title shows no change. The new
guest_filesystemcheck (one directory open per missing-path lookup, plus the ambiguous.guest.prxthrow) fails on main and passes here. ctestguest|libc|libkernel|filesystem|agc_: 948/948 pass.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-15T06:43: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)core/libs/prx/libc/src/General.cppL126-129core/libs/prx/libc/include/FilesystemError.hppL28, L30core/libs/prx/libc/include/General.hppL20core/libs/prx/libc/src/General.cppL150core/libs/prx/libkernel/File/src/Open.cppL224-225, L305-306core/libs/prx/libkernel/File/src/Stdio.cppL878-879core/libs/prx/libc/src/General.cppL74-75, L78-79, L85-93, L108-109, L127-129, L149-150, L156, L168core/libs/prx/libkernel/File/src/Open.cppL224-226core/libs/prx/libc/src/General.cppL388, L393-402