Repository navigation
Conversation
|
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.
|
e8c4d03 to
073343e
Compare
|
Rebase handoff — rebased onto current Verified on Linux (CachyOS, kernel 7.2.9, GCC 16.2.1, Ninja, Release, To pick it up: Head is |
073343e to
49cf8a7
Compare
|
Updated the published branch to 86279a7 by merging main a6dcea9 without force-pushing. Resolved the libkernel debt conflict while retaining both the archive-stream limitations and main's module-loading entry. Rebuilt and checked the focused archive/stream targets: Windows 17/17 and WSL Linux 18/18 passed, including all five archive stdio cases. Conventions reports 0 errors and diff checks pass. The description now records the current head, evidence and remaining limits; this is not a full-suite or console result. |
|
@qpavyros a merge-order note: #9478 changes the same |
MarcZX10
left a comment
There was a problem hiding this comment.
Reviewed — comments
No blocking defect was verified in the code inspected, but the review is incomplete because tests were not run and not every changed file was read.
What I ran
Inspected the prepared diff for head 7faf2fff1fffad65690a893f489943616d129aaa and targeted source ranges using repo_read.py. No build or test command was run.
Results
| Check | Result | Note |
|---|---|---|
| Change inspection | passed | Targeted implementation paths reviewed |
| Tests | not run | No commands were run |
| Full changed-file review | not run | Some files and ranges were not read |
Negative control
Not run; no test command was run.
Findings
Blocking
None verified in the inspected code.
Non-blocking
None.
Sources
Reviewed the prepared diff and source at the pinned head. Inspected AppArchiveStream.cpp, AppArchive.hpp, AppArchive.cpp, FileAndHeap.cpp, Filesystem.cpp, ArchivedFile.cpp, Stdio.cpp, and FileStream.hpp in whole or in targeted ranges.
Not verified
Tests, builds, and runtime behavior were not verified. The changed files CMakeLists.txt, GuestArchiveStdio.cpp, docs/dev/debt/libc.md, and docs/dev/debt/libkernel.md were not read from their full head text; AppArchive.cpp, FileAndHeap.cpp, Stdio.cpp, and FileStream.hpp were only read in selected ranges. The manifest lists 12 changed files, all included; no exclusions were reported by the file listing.
To get this to a good state
Nothing is required. Optional: run the focused archive stdio tests on Windows and Linux, and review the changed files and ranges not inspected here.
What
Allow libc
fopenandfopen_sto read entries found only in AnyPS5's optionalapp0.zarpackaging layer, while preserving disk overrides and case-insensitive lookup.Materialize each opened entry into a temporary file in 64 KiB chunks, reopen it with genuine read-only OS access, and use the existing native stdio implementation. This covers reads, seeking, EOF/error state, narrow scanning and wide input without a separate stdio backend. Independent opens have independent positions; duplicated descriptors share the native backing and preserve archive metadata. Close, reopen and descriptor replacement retire the metadata.
Add archive-aware
accessandlstat; preserve the existing archive-awarestatpath. Prevent unsupported descriptor operations from acting on temporary-file metadata.Opening decompresses the whole entry and needs temporary disk space equal to its uncompressed size for each independent open. No performance improvement or title bring-up is claimed. Directory merging,
fdopenon the existing virtual kernel archive descriptors andfreopento an archive-only path remain unsupported. Host stdio buffering rules still apply when mixing streams and descriptor I/O. This is not support for the console's PFS format.Integration follow-up: merged main
1a745ae38without rewriting published history. Resolved the FileStream close conflict by retaining both archive metadata detachment and main's Windows directory-stream deregistration. Directory merging remains separate in #8520; it is not a prerequisite for stdio reads.Merge order: agreed to #9478 landing first, as its author proposed. This PR lists it as a dependency and will take
ResolvePathError_nid_no_patch(path, native, true, true)when integrating that change, retaining module lookup and archive lookup. Until #9478 lands this branch retains its existing archive resolver flags. #9474's author has agreed to land after #7447 and retain both the early archive access lookup and the Windows host symlink checks.Tested
dead12eba, integrating main1a745ae38.python tools/check_conventions.py --base origin/main: 0 errors, two debt-length warnings.git diff --checkpassed.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)