VFS: reject CREATE_ALWAYS on original directories (#577) #644
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!644
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-644"
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?
@fladit123 on GitHub · 2026-11-24 02:49 UTC · original
fladit123:fix/issue-577-create-always-directory→main· +70 −5 · 2 files · 1 commits · openPart of #577 (item 1 only).
Reject
CREATE_ALWAYSon an original game directory that is not present in the overlay, beforeprepare_writecan create an overlay file that hides the directory.What is in it
6d12f58a229bc73889878a448c64dc3af25eeba0.Tested
9c1eb168cd93b59126baea688bb966eb8c92522d.Native Win32 and the corrected VFS agree:
Validation results:
git diff --checkpassed.The sole workspace failure was
blob_enumeration_sees_one_submitted_update, matching the existing report in #2421.The failure was independently reproduced locally on the exact unmodified base commit: 4 of 29 enumerations mixed submitted updates on main, compared with 5 of 29 in the isolated candidate run.
Explicit runtime skips included:
gpu::dxil::kernel,gpu::recomp::lower,gpu::recomp::lower_dxil, andgpu::recomp::tests.pso_measurement_compiles_an_exact_synthetic_record: Windows Developer Mode required.heap_window_out_of_memory_falls_back_to_the_switch_form: no heap windows.These runtime skips are separate from the harness's ignored-test count.
Regression run
Both builds were tested locally on the same title for 60 seconds, with networking disabled and separate fresh title-data roots.
Main:
PR:
The candidate achieved 109.04% of main's frames and 99.92% of its peak committed memory.
An additional control was performed with reversed execution order and identical executable hashes:
Both pairs satisfy the numerical regression thresholds.
However, substantial run-to-run variability was observed. Earlier tests on a previous base also failed the numerical regression thresholds.
Inspection of the second pair's activity logs revealed prolonged zero-present intervals in both main and candidate, accompanied by closely matching target-page and local video-memory allocations. Main subsequently resumed presenting frames, while the candidate reached the 60-second cutoff before recovery.
These observations suggest similar loading or processing phases occurring at different times, but do not establish the underlying cause. No FPS improvement or memory optimization is claimed.
Previous independent AMD RX 9070 XT validation by @eizispark on the original PR revision remains documented in the PR discussion:
https://github.com/ivall/xcl/pull/644#issuecomment-7121024016
Not tested
AI use
@eizispark on GitHub · 2026-11-24 03:22 UTC · original
Hardware check of
e176775e13d92e41ed86afa418f21a5907586c35(verified clean merge withmain63cdc25): pass.Tested
rustc 1.100.0 (0ef1bc386 2026-11-09), release + test profilecargo test --workspace -- --test-threads=4:688 passed, 0 failed, 41 ignored(GPU tests skipped on this adapter:none)cargo test -p xcl --lib vfs_hooks:11 passed, 0 failed(including the newCREATE_ALWAYSoriginal-directory regression test)Regression run
main(dd2ae9a):PR (
e176775):Not tested
AI use
scripts/smoke.ps1harness on this machine and formatted this report.@fladit123 on GitHub · 2026-11-24 16:41 UTC · original
Hey @eizispark! Main has moved quite a bit and #644 now has a merge conflict. I'm preparing a rebased version that preserves the original VFS fix and regression test. Would you be available to rerun the paired smoke tests once I have the final candidate ready? No worries if you're busy. Thanks again for your previous help!
@JJAutoCompare on GitHub · 2026-11-25 06:30 UTC · original
Empirical test report (e176775e)
Hardware / environment
e176775e13d92e41ed86afa418f21a5907586c35(PR #644), detached HEAD.XCL_ADAPTER=NONE_CPU_ONLYandRUST_TEST_NOCAPTURE=1. All commands ran outsideInvoke-ArcTest.ps1, without holding the Arc GPU mutex.Commands and results
cargo test --workspace --no-runexited 0. Workspace test binaries compiled and zero tests ran.cargo test -p xcl --lib vfs::tests::exited 101 with 9 passed / 1 failed / 0 ignored / 0 skipped.cargo test -p xcl --lib vfs_hooks::tests::exited 0 with 11 passed / 0 failed / 0 ignored / 0 skipped.cargo test -p xcl --lib vfs::tests::truncate_existing_validation_errors -- --exactexited 101 with 0 passed / 1 failed / 0 ignored / 0 skipped. This reran the same failure.SKIPPED.Observed behavior
CREATE_ALWAYSmatched nativeCreateFileWwithERROR_ACCESS_DENIED(5) without flags andERROR_FILE_EXISTS(80) withFILE_FLAG_BACKUP_SEMANTICS. Both cases left the overlay absent and the original directory visible with its contents intact.TRUNCATE_EXISTINGvalidation test read Win32 error 127 where it expected 5, both in the suite and in isolation. No base-commit comparison was run.Not tested
AI use
Verified with T3 Code / Codex (gpt-6.2-sol, reasoningEffort: high). Coordinator #2 (T3 Code / Antigravity, gemini-4-neon) verified counts against pr644-focused.log and published.
@DavidM1911 on GitHub · 2026-11-25 12:31 UTC · original
Verification on RTX 3060 Ti (Windows 11): merge conflict with current
main— needs a rebase before it can be tested.@fladit123 on GitHub · 2026-11-25 19:29 UTC · original
Thanks @DavidM1911 for checking!
I've confirmed that the original CREATE_ALWAYS directory issue is still present on current main (
06055a7). I also noticed that main now captures GetLastError immediately in truncate_existing_validation_errors, addressing the previously observed error 127 discrepancy.I'll prepare a clean rebase while preserving the original fix and regression test. Before updating the PR, I want to repeat the workspace validation and resolve the outstanding smoke-test discrepancies.
Thanks again for the independent verification.
@fladit123 on GitHub · 2026-11-25 21:30 UTC · original
Rebased onto current main (
6d12f58) and resolved the merge conflicts.The updated candidate (
9c1eb16) passed all 23 VFS/VFS hook tests. The full workspace run had one failure, which was reproduced on the unmodified base and matches #2421.Both local RTX 4060 smoke pairs meet the numerical regression thresholds. Run-to-run variability and zero-present intervals observed on both builds are documented in the updated description.
Ready for another review. Thanks for your patience!
@DavidM1911 on GitHub · 2026-11-26 03:00 UTC · original
Re-verification on RTX 3060 Ti (Windows 11), new head merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, 27 ignored. The earlier merge conflict is resolved.Thanks!
— Devin
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.