VFS: treat MAXIMUM_ALLOWED opens as writes #2850

Closed
guinpereira wants to merge 1 commit from upstream-pr/2850 into main
guinpereira commented 2026-11-26 18:41:39 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by guinpereira on 2026-11-26T18:41:39Z.


Fixes #2682.

Adds MAXIMUM_ALLOWED (0x02000000) to WRITE_ACCESS so such opens take the write/overlay branch instead of bypassing it.

What is in it

  • crates/xcl/src/vfs.rs: MAXIMUM_ALLOWED added to WRITE_ACCESS.

Tested

  • Windows 11, NVIDIA GeForce RTX 5060 Ti, Rust stable (x86_64-pc-windows-msvc), debug build.
  • cargo test -p xcl --lib -- --test-threads=4: 1315 passed, 4 failed (GPU OOM in dxil fuzz tests, environment), 27 ignored.
  • cargo build -p xcl: clean.

Regression run

xcl-smoke v1
commit: 05adb5a9cfc718119c0c9c097365983e67982d05
gpu: NVIDIA GeForce RTX 5060 Ti
title: gta6
seconds: 60
exit: 0x0
frames shown: 1043 (PresentX 1043)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 15536 MB

Reference run on the author's local main (05adb5a). A run on ivall/xcl main and on this PR's head commit is still pending (cold shader cache crashes the title's startup precompile on this machine).

Not tested

  • Smoke on ivall/xcl main baseline and on this PR's head commit (pending, see above).
  • A real MAXIMUM_ALLOWED open against the overlay not exercised here.

AI use
OpenCode, Beam Free - drafted the change; smoke run and review by the author.

<!-- greyfinch-sync:ivall/xcl:issue:5515438338 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2850). Originally posted by [guinpereira](https://github.com/guinpereira) on 2026-11-26T18:41:39Z. --- Fixes #2682. Adds MAXIMUM_ALLOWED (0x02000000) to WRITE_ACCESS so such opens take the write/overlay branch instead of bypassing it. **What is in it** - `crates/xcl/src/vfs.rs`: `MAXIMUM_ALLOWED` added to `WRITE_ACCESS`. **Tested** - Windows 11, NVIDIA GeForce RTX 5060 Ti, Rust stable (x86_64-pc-windows-msvc), debug build. - `cargo test -p xcl --lib -- --test-threads=4`: 1315 passed, 4 failed (GPU OOM in dxil fuzz tests, environment), 27 ignored. - `cargo build -p xcl`: clean. **Regression run** ``` xcl-smoke v1 commit: 05adb5a9cfc718119c0c9c097365983e67982d05 gpu: NVIDIA GeForce RTX 5060 Ti title: gta6 seconds: 60 exit: 0x0 frames shown: 1043 (PresentX 1043) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 15536 MB ``` Reference run on the author's local main (05adb5a). A run on ivall/xcl main and on this PR's head commit is still pending (cold shader cache crashes the title's startup precompile on this machine). **Not tested** - Smoke on ivall/xcl main baseline and on this PR's head commit (pending, see above). - A real MAXIMUM_ALLOWED open against the overlay not exercised here. **AI use** OpenCode, Beam Free - drafted the change; smoke run and review by the author.
throny commented 2026-11-30 19:54:28 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by throny on 2026-11-30T19:54:28Z.


Closing as a duplicate of #2694: main already adds MAXIMUM_ALLOWED to WRITE_ACCESS in vfs.rs (merged in #2694, with a test), which is this PR's one line. I compared the diffs against current main (ff0c364b). If I got this wrong (something here is not in #2694), say so and reopen it, or ask and I will.

AI use: Claude Code (Claude Opus 5.5) checked the pair and wrote this; part of the duplicate sweep announced on #3041.

<!-- greyfinch-sync:ivall/xcl:comment:7290116027 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2850#issuecomment-7290116027). Originally posted by [throny](https://github.com/throny) on 2026-11-30T19:54:28Z. --- Closing as a duplicate of #2694: `main` already adds `MAXIMUM_ALLOWED` to `WRITE_ACCESS` in `vfs.rs` (merged in #2694, with a test), which is this PR's one line. I compared the diffs against current `main` (`ff0c364b`). If I got this wrong (something here is not in #2694), say so and reopen it, or ask and I will. AI use: Claude Code (Claude Opus 5.5) checked the pair and wrote this; part of the duplicate sweep announced on #3041.

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
xcl-dev/xcl!2850
No description provided.