Repository navigation
Conversation
6938390 to
0646cbc
Compare
adriadam10
left a comment
There was a problem hiding this comment.
Thanks for the PR. Points to address:
Stdio.cpp:785-798: the throw isNotImplemented_nid_no_patch(runtime_error), which ends the guest, so nothing observes errno afterwards. Please say who reads it (a catch in the host, a title) and where errno is cleared before the throw; I couldn't find a clear inResolvePathError_nid_no_patchorDoLstat. If nothing observes it, a try/catch around the whole function is extra code without a behaviour change.- No other
NotImplementedpath in libkernel restores errno; if this is wanted it should be a shared rule, not one function. GuestFilesystem.cpp:587: replacingstd::filesystem::removewithDeleteFileW/RemoveDirectoryWis not explained. Ifremovefails on these links, say what it returned and why; otherwise it's a separate topic.- The test is Windows-only and CI's windows job is skipped on PRs, so a Linux run can't show it fails without the change. Please link the failing/passing Windows output on the PR head (without #4780 applied).
Linux build and ctest (147 tests incl. guest_filesystem) pass, but they don't exercise this path.
Resolving the path clears errno before the unimplemented symbolic-link path throws, so that failure has to restore the previous errno.
0646cbc to
ff99c5b
Compare
|
Thanks for the review @adriadam10! Here are the details on each point:
The branch has been rebased cleanly onto latest upstream/main (8cf6a0b). |
|
Closing: no title is known to reach this. With the queue at 700+ open PRs, please hold off on new PRs that don't name a title needing the change until it's down. If a title stops on this on current main, reopen with the title ID and the log line. |
What
lstatof a Windows symbolic link still throws for the unimplemented path. Path resolution clears guest errno before that throw when resolving dangling links or non-existent paths (due to directory iteration in case-insensitivity resolution). Restore the previous errno when the operation throws so guest errno remains unchanged, and clean up Windows test links properly.Tested
Windows Server 2025 / Windows 10 x64, MinGW-w64 GCC 15.2.0 (UCRT), Release:
main(8cf6a0bc3).guest_filesystemtest:checkUnsupportedLink(danglingLink)withFilesystem check failed at line 513 (guest errno 0, Win32 error 18)because directory iteration duringResolveHostPathresets errno to 0, andstd::filesystem::removereturns 0 for file symbolic links.guest_filesystempasses (100% pass, 0.11 s), checking file, directory and dangling symbolic links, preserving errno 123, and cleaning up test links viaDeleteFileW/RemoveDirectoryW.python tools/check_conventions.py --base upstream/main(passed).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)