VFS: keep game files hidden after delete-on-close #1038
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!1038
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1038"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@gloger2003 on GitHub · 2026-11-24 10:44 UTC · original
gloger2003:fix/vfs-delete-on-close→main· +86 −21 · 5 files · 1 commits · openPart 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 #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
@dcastell1 on GitHub · 2026-11-24 10:51 UTC · original
The new e2e expectation in this PR fails on the current base:
The title itself finishes clean (
xcl_testtitle: done, failures: 0,Game exited with code 0x0 (0),report.jsonexit_code = 0), so this is the file state, not the run. The whiteout file atdata\XCL.TestTitle\overlay\.xcl_whiteoutsis 19 bytes:i.e. the
delete_me.txtentry is there and the new one the test asks for two lines later —data\delete_on_close.txt— is not, which is the secondassert!at that spot (e2e.rs:159, right after thedelete_me.txtline). So the close-with-delete path is not reaching the whiteout list on this run, which is exactly what the PR is for.Environment: Windows 11 10.0.26300, NVIDIA GeForce RTX 5090 (driver 621.24), Rust 1.100.0 MSVC 14.44.35207, debug build, clean
main@67a3735(735 passed, 0 failed, 41 ignored) with this PR at7f939053applied withpatch -p1(clean, no fuzz). Tree restored afterwards; no game data.AI-assisted (opencode): applied the patch to a built tree, ran the suite, inspected the overlay's whiteout file, reverted it.
@Curry-976 on GitHub · 2026-11-24 10:59 UTC · original
Test report for this PR's head
7f939053fe3dc83d17a337ece7f7731960cd279a(checked out withgh pr checkout 1038, no local changes), with the two smoke blocks the description is waiting for.Tested
stable-x86_64-pc-windows-msvc.cargo build --workspace && cargo test --workspace -- --test-threads=4(debug): 727 passed, 0 failed, 41 ignored. SKIPPED:gpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardware(no wave64).test_title_runs_and_game_folder_is_untouched, with the new delete-on-close check, passes.scripts/smoke.ps1 -Game <retail title folder>(60 s,cargo build --release -p xcl), the two runs back to back:main:
PR:
This laptop's frame rate drops from run to run as it heats up (an earlier
mainrun on the same commit showed 554 frames), so the two blocks above are the pair taken back to back. The title was not checked for delete-on-close opens: the runs are a regression check only.Not tested
FILE_FLAG_DELETE_ON_CLOSE.AI use
@DavidM1911 on GitHub · 2026-11-24 11:29 UTC · original
Independent verification, merged onto current
main384f7f7locally (clean merge).Machine: Windows 11, Ryzen 9 7900X + RTX 3060 Ti; Rust stable MSVC, debug.
cargo test -p xcl --lib vfs: 19 passed, 1 failed —vfs::tests::truncate_existing_validation_errors. This is the pre-existingmainfailure (fixture dirs contain files) that open PR #1033 fixes; it is not introduced here, but this branch will stay red on that test until #1033 (or an equivalent) lands.cargo build --workspace && cargo test -p xcl --test e2e: 3 passed, 0 failed — includingtest_title_runs_and_game_folder_is_untouched, which now covers the delete-on-close behaviour.AI use: test runs by Devin (Cognition, SWE-2); no code changes.
@JJAutoCompare on GitHub · 2026-11-25 05:31 UTC · original
Empirical test report (
7f939053)Hardware / environment
10.0.26200.0. AMD CPU reported as family 23, model 113, stepping 0, with 12 logical processors.rustc 1.100.0 (0ef1bc386 2026-11-09).dxc --versionreported1.9.2609.5 (01b62ad47).Invoke-ArcTest.ps1, with zero Arc GPU mutex hold. The focused commands usedXCL_ADAPTER=NONE_CPU_ONLYandRUST_TEST_NOCAPTURE=1.Commands and results
cargo test --workspace --no-runexited 0 at7f939053fe3dc83d17a337ece7f7731960cd279a.cargo test -p xcl --lib vfs -- --nocaptureexited 101. The log recorded 19 passed, 1 failed, 0 ignored, and 0SKIPPEDlines. The filter selected thevfsandvfs_hookslibrary tests.cargo test -p xcl --lib vfs::tests::truncate_existing_validation_errors -- --nocaptureexited 101 on both the PR head and its parente74dda2d4b5c28a81cfa971d14bc417a6be966aa. Each isolated run recorded 0 passed, 1 failed, 0 ignored, and 0 skips.Observed behavior
ERROR_PROC_NOT_FOUND) where it expected 5 (ERROR_ACCESS_DENIED).Not tested
The full GPU workspace suite and game smoke runs were omitted. The PR adds its two-handle delete-on-close regression check inside the D3D12-dependent test title. The workspace build compiled that check, and the CPU VFS filter left it unexecuted.
AI use
Verified with T3 Code / Codex (gpt-6.2-sol, reasoningEffort: high). Coordinator #2 (T3 Code / Antigravity, gemini-4-neon) verified counts against
pr1038-focused.logand published.@DavidM1911 on GitHub · 2026-11-26 03:41 UTC · original
Re-verification on RTX 3060 Ti (Windows 11): still a merge conflict with current
mainon the new head — needs another rebase before it can be tested.View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.