Repository navigation
fix(libkernel): support lstat on long Windows paths - #7202
Conversation
|
Thanks, this looks good in review. One note on ordering: we plan to merge #7196 first. After it lands, this PR will need a small rebase. The only conflict is the test in Non-blocking, for a later follow-up if you're interested: with #7187, #7196 and this PR there are now three copies of the |
|
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.
|
|
Yes, a shared helper is a useful follow-up. These three PRs have separate filesystem call sites, and keeping their current changes focused avoids adding cross-PR conflicts while their fixes are reviewed and rebased. After #7187, #7196 and #7202 land, I can map the common path-normalization rules and propose one internal helper with shared tests, preserving each call site’s existing error behavior. |
646c392 to
946c441
Compare
|
Rebased onto current main |
|
CI update for rebased head |
946c441 to
bbec884
Compare
|
Independent Windows run, since the PR description says the Windows runtime regression could not be run on Linux. Setup: Windows 11 (MinGW64, native), WinLibs GCC 15.2.0 UCRT,
So the new regression does fail without the Not checked: the full non-GPU suite, Linux, macOS, and the Written with AI assistance (Claude Code). I ran the builds and tests above on my machine. |
|
Thanks for running the Windows regression independently. Your three repeated runs confirm that the long-path |
bbec884 to
6b3486e
Compare
|
Rebased onto current |
6b3486e to
d815a19
Compare
|
Rebased #7202 onto current |
|
Hosted checks for rebased head |
d815a19 to
b4de62c
Compare
b4de62c to
ad3dfd1
Compare
|
A heads-up from the #8534 side, since the overlap bot pairs the two: #8534 adds |
|
Thanks, that composition issue is real. After #8534's |
ad3dfd1 to
5d40700
Compare
5d40700 to
665e4cf
Compare
What
Prepare native Windows stat paths with the extended-length namespace before the
lstatmetadata calls. Add a Windows filesystem regression that creates a host file under a path longer thanMAX_PATH, verifies guestlstatreports the regular file and its size through both ordinary and already-extended host aliases, and verifies missing long paths still reportENOENT.Tested
NativeStat.cppandGuestFilesystem.cpp.665e4cf540,git diff --check upstream/main...HEADandpython3 tools/check_conventions.py --base upstream/main --head HEADpass. An independent MinGW syntax-only check passes forNativeStat.cpp; theGuestFilesystem.cppattempt was blocked by the installed headers (_fflush_nolockandFILE_CS_FLAG_CASE_SENSITIVE_DIRare undeclared).python3 tools/check_conventions.py --base upstream/mainandgit diff --checkpassed.pr_overlap.pyreports shared files with fix(libkernel): return EBADF from fstat on a descriptor that is not open on Windows #6897, fix(libkernel): return ELOOP when stat follows a symlink loop #6992, fix(libkernel): report absolute Windows symbolic links #7111, fix(libkernel): stat files under long Windows paths #7196 and Macos port #7201; manual review found no duplicate long-pathlstatimplementation. fix(libkernel): stat files under long Windows paths #7196 handlessceKernelStat, fix(libkernel): return ELOOP when stat follows a symlink loop #6992 handles symlink-loop errors, fix(libkernel): report absolute Windows symbolic links #7111 adds absolute-link support, and Macos port #7201 changes Apple-only timestamp fields. fix(libkernel): report absolute Windows symbolic links #7111 has merged; this branch is now rebased onto upstream/main ate7e3e9c1984c293f06bff08428b8c89b7b932ac2, preserving the compatibleDoLstatchange.Checklist
main; no other open PR implements long-pathlstatsupportNotImplemented_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)