feat(libSceSystemService): call libSceUsbStorage from the USB storage aliases #11051
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/11051"
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 simnJS on 2026-10-25T15:24:03Z.
What
sceSystemServiceUsbStorage*exports are direct jumps into the USB storage module (the "USB storage aliases" entry ofdocs/dev/debt/libSceSystemService.md). 16 of the 17 now call the matchinglibSceUsbStorageexport instead of throwing. libSceSystemService links libSceUsbStorage, andloadexec_argumentsstages it with the other libraries.sceSystemServiceUsbStorageRequestMapWSBkeeps the marker. Its declaration takesRequestMap's 64-bit volume size and mount-id output, while libSceUsbStorage declares shadPS4's 32-bit fourth argument and status output, and which one the module uses is unconfirmed. The debt entry records it.mainnow that #11046 is merged, so the diff is this PR's single commit. The test turns onAPS5_USB_STORAGE_PASSTHROUGH, which #11046 made opt-in, before its device case.Tested
guest_system_service_usb_storageandguest_usb_storagepass, 5 runs in a row.APS5_USB_STORAGE_PASSTHROUGHset, the aliases list, describe, map, unmap and scan it, and share the service state with the direct exports. With the switch unset, that case fails withthe alias initialized the USB storage service.guest_system_service*andloadexec_argumentstests pass, includingloadexec_argumentswith the new dependency staged.tools/check_conventions.py --base origin/mainpasses.BUILD_TESTING=ON), on an earlier head before the rebase: the new test and the 20 tests matchingsystem_service|system_exit|loadexec_arguments|usb_storagepassed. Not rerun on this head.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 MarcZX10 on 2026-10-25T15:47:20Z.
Review: DISMISSED
I checked the newly reported overlap against exact current heads: #11051 1d38eee83a2342e5aa49cb0aa0f6ec16a59c604f and #9977 502e157fa01fda35aad971738468300fcac9043f. A three-way merge has a content conflict only in core/libs/tests/GuestSystemService.cpp, in the extern-declaration block: #9977 adds the ShellCoreUtilActivate declarations while this PR's stack removes/replaces that block. PendingExports.cpp and docs/dev/debt/libSceSystemService.md merge cleanly, and I found no same-export overlap between the USB-storage aliases and #9977's activation behavior.
The test-file conflict looks mechanically resolvable by preserving both sets of declarations, but CONTRIBUTING.md requires authors to agree on the order when the overlap workflow finds shared lines and to record it with Depends on. Please coordinate with #9977's author, record whichever order you agree on, and refresh/rebase the combined result. I have not approved this PR pending that repository-required composition check.