feat(libSceAppContent): report the download data block size #19934
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/19934"
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 sarveshgamers on 2026-11-14T08:33:08Z.
What
Implement
sceAppContentDownloadDataGetBlockSize:/download0-/download2withNOT_MOUNTED.sceAppContentDownloadDataGetAvailableSpaceKbdoes, then reports the host filesystem's allocation unit for it: the cluster size fromGetDiskFreeSpaceWon Windows andst_blksizeon POSIX.PARAMETERand preserves guest errno; a host volume that reports no usable size throws instead of inventing a value.docs/dev/debt/libSceAppContent.mdrecords that the console's value and whether it follows the volume or a fixed format size are unmeasured.Tested
Windows 11, MinGW-w64 GCC 16.2.0: built
libSceAppContentandguest_appcontent_download_testsand ranctest -R ^guest_appcontent_download(passed, 5/5). The test checks a null mount and a null output against0x80D90002without writing the output, a/download0block size that is positive and a power of two, and that/temp0returns0x80D90004.python tools/check_conventions.py --base upstream/mainpassed;python tools/pr_overlap.py --names sceAppContentDownloadDataGetBlockSizereported no open PR for this function.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 PrivacyOnion on 2026-11-14T08:51:49Z.
Review: APPROVED
Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against
eb36d22dd3:tools/check_conventions.pypassed;git diff --checkclean.guest_appcontent_download_testsbuilt cleanly.guest_appcontent_download_0,guest_appcontent_download_1,guest_appcontent_download_18014398509481983,guest_appcontent_download_18014398509481984,guest_appcontent_download_18446744073709551615):core/libs/prx/libSceAppContent/Export.cppreverted tomainand the new tests kept, the suite fails: Restoring the change makes it pass again.Looks Good To Me