Repository navigation
VFS: keep game files hidden after delete-on-close - #1038
gloger2003 wants to merge 1 commit into
Conversation
An open with FILE_FLAG_DELETE_ON_CLOSE removes only the overlay file on close. Record a whiteout after the native open succeeds and retain it when another handle opens the existing overlay entry. Exercise two handles in the test title and check that the original game tree stays byte-identical. The Windows workspace suite passed on an RX 7800 XT.
|
The new e2e expectation in this PR fails on the current base: The title itself finishes clean ( i.e. the Environment: Windows 11 10.0.26300, NVIDIA GeForce RTX 5090 (driver 621.24), Rust 1.100.0 MSVC 14.44.35207, debug build, clean AI-assisted (opencode): applied the patch to a built tree, ran the suite, inspected the overlay's whiteout file, reverted it. |
|
Test report for this PR's head Tested
main: PR: This laptop's frame rate drops from run to run as it heats up (an earlier Not tested
AI use
|
|
Independent verification, merged onto current Machine: Windows 11, Ryzen 9 7900X + RTX 3060 Ti; Rust stable MSVC, debug.
AI use: test runs by Devin (Cognition, SWE-2); no code changes. |
Part of #998. Opening a mounted game file with
FILE_FLAG_DELETE_ON_CLOSEused to remove the overlay copy and expose the original again.What is in it
Tested
Windows 11 build 26300.9974, AMD Radeon RX 7800 XT (32.0.32029.2010), Ryzen 7 5700X, Rust 1.100.0 MSVC, Windows SDK DXC 1.9.2602.17.
cargo build --locked --workspaceandcargo test --locked --workspace --no-fail-fast -- --test-threads=4 --show-outputon the source in7f93905: 727 passed, 0 failed, 41 ignored, no explicit GPU capability skips.The new test reproduced the original resurfacing, including after a second writable open. The release build with the fix completed the in-tree title with zero failures.
Local merge of this exact head into main 47efa2e (tree bbccc1d): rebuilt the workspace, then ran all tests on the RX 7800 XT. 741 passed, 0 failed, 41 ignored, no explicit GPU capability skips. The delete-on-close e2e test and the previously failing truncate_existing_validation_errors test both passed.
Also checked a local combination with VFS: a delete through a handle hides the game file (#998) #1054 at 7ecc08f. In that combination, opening with FILE_FLAG_DELETE_ON_CLOSE, calling FileDispositionInfo(FALSE), then closing made the original visible again. Windows still deletes the overlay copy, but the explicit-disposition hook clears the whiteout. This is an interaction between the two PRs.
Regression run
Independent runs by Curry-976 on a GeForce RTX 4050 Laptop GPU. The contributor reports 727 passed, 0 failed, 41 ignored in the workspace suite, with two wave64 capability skips. The smoke runs were back to back.
main:
PR:
Not tested
XCL_SAMPLE_*files.FILE_FLAG_DELETE_ON_CLOSEfor files. Deletion or renaming viaSetFileInformationByHandleremains separate.AI use