Repository navigation
feat(libkernel): implement _fstatfs - #2858
Conversation
|
Thanks for opening this and for linking my branch. I can't open a PR myself because of the intake check, so here are the differences between the two, in case you want to fold any of them in. Each piece is in
None of this changes the Stremio Plus stop. With either version it moves on to |
6012a43 to
9a3e55b
Compare
|
@Recapi your version handles more, so this PR now carries your commit (756439c rebased onto |
|
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.
|
What
Implements
_fstatfs(17Mfe1B3X6U) in libkernel. The commit is @Recapi's (Recapi:feat/libkernel-fstatfs 756439c, rebased ontomainwith their authorship kept). They can't open a PR yet because of the intake check, and it handles more than my first version of this PR did.It fills the FreeBSD 11
struct statfs(472 bytes,f_version0x20030518) with the host volume that holds the file: block size, transfer size, total, free and available blocks, file counts and maximum name length, plusMNT_RDONLY,MNT_NOSUIDandMNT_NOEXECfromfstatvfson Linux. On Windows it usesGetVolumePathNameW,GetDiskFreeSpaceW/GetDiskFreeSpaceExWandGetVolumeInformationW, mapping onlyFILE_READ_ONLY_VOLUME.EINVAL, as FreeBSD'sgetvnodedoes. On Linux, named FIFOs still work.Stremio Plus (PPSA74126) stops at it on
main57f96fd (catalog build,eboot.binandsce_module/libc.prxunwrapped as #2605 requires; tracked in #1578):main, Linux:app.elf: symbol lookup error: app.elf: undefined symbol: 17Mfe1B3X6Uapp.elf: symbol lookup error: app.elf: undefined symbol: 04AjkP0jO9U(_umtx_op, feat(libkernel): implement _umtx_op wait and wake operations #1482)Tested
Linux (Ubuntu 24.04, GCC 13, Release) on 57f96fd:
guest_fstatfspasses 5/5 (--repeat until-fail:5), and the Stremio Plus line above.check_conventions.pypasses. Windows 11 (MinGW-w64 GCC 15.2 from WinLibs, Release) on the same commit:guest_fstatfs5/5, no warnings, and Stremio Plus stops atFAIL: unresolved ELF import 04AjkP0jO9U (_umtx_op) from libkernel.prx.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt.mdfiles or images added to the repository (attach them to this PR)