You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
file_system: creating a directory again after it was removed clears its removal marker - #9567
Clear the removal marker after recreating a package directory, preserving markers for deleted children. If marker deletion fails, remove the newly created overlay directory and return the deletion error.
Why
A stale marker leaves the recreated directory hidden. Concurrent RemoveDirectoryW and CreateDirectoryW can race; the file path has the same race and it is outside this change.
Tested
AI-assisted change. Synthetic file_system_test on p2 under Wine, no GPU or driver: 455 checks, 6 pre-existing MAXIMUM_ALLOWED failures. With the new test and the previous implementation: 455 checks, 9 failures, including 3 from the held-marker case.
git diff --check; check_no_game_data.py on changed source files.
checked: native Windows verification for head 6de6f5b on merge b603bb9. Windows 11 x64 build 26100, MSVC 19.44.35220, Windows SDK 10.0.26100, Release.
The stock file-system test passed with 457/457 checks. With a marker held open without delete sharing, recreation returned the deletion error, removed the newly created overlay directory, and succeeded after the handle closed.
A local extension drove the same code through CreateDirectoryExW with a deleted child file and directory. The parent became visible and lost its own marker. Both children kept their markers and stayed absent from lookups and listings. All 467 checks passed on three runs.
Rebuilding the same extended test with only the shim implementation restored to the merge base produced five failures. They covered the two parent-marker clears and the error, rollback and retry checks for the held marker.
Tested 6de6f5b2b merged onto main5d74c2723 on Windows 11, AMD Radeon RX 7800 XT (driver 32.0.32029.2010), MSVC 2022 RelWithDebInfo, Vulkan SDK 1.4.363.0, synthetic only, no game files: pass.
Full ctest -j8: no new failure. The same 4 fail as on main5d74c2723 alone fails the same 4 on this card (d3d12_vulkan_device, d3d12_texture_tiles, d3d12_depth_resolve, d3d12_pipeline_library_host: known AMD host issues with open fixes); vk_queue_query_sync also failed once; it is flaky on this card on main too (#6149 fixes it). file_system passes, including the recreate and held-marker checks.
AI-assisted (Claude Code); I read the full diff before building.
Tested 6de6f5b2b (as part of #9523, #9499, #9567, #9566 and #9328 merged together onto main 5d74c2723) on NVIDIA GeForce RTX 2080, driver 621.24 (32.0.16.2124), Windows 11, MSVC 19.44 RelWithDebInfo: pass.
file_system passes, including the new remove-then-recreate directory case.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Clear the removal marker after recreating a package directory, preserving markers for deleted children. If marker deletion fails, remove the newly created overlay directory and return the deletion error.
Why
A stale marker leaves the recreated directory hidden. Concurrent RemoveDirectoryW and CreateDirectoryW can race; the file path has the same race and it is outside this change.
Tested
@ItsNotRexed: an exe PR, as you asked.
Claim: #9401 (comment)