VFS: preserve whiteouts when CreateFile fails on a deleted game file #1352

Merged
b3IKK merged 1 commit from upstream-pr/1362 into main 2026-12-01 07:22:27 +00:00
b3IKK commented 2026-11-24 15:12:43 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by b3IKK on 2026-11-24T15:12:43Z.


open_decision_for called prepare_write before CreateFileW / CreateFileA / CreateFile2 ran, eagerly clearing any whiteout on the target path. If the underlying CreateFile* call then failed (e.g. sharing violation, invalid flags/attributes, or ERROR_ACCESS_DENIED), no overlay file was created yet the whiteout was already gone—resurrecting the deleted original game file.

This adds prepare_write_staged and open_decision_staged / open_decision_staged_for (following the existing stage_write / commit_write pattern from d903a80) and has apply_open_decision call commit_write only after CreateFile* returns a valid handle, while saving and restoring GetLastError() across commit_write's whiteout persistence I/O so statuses like ERROR_ALREADY_EXISTS are not clobbered.

What is in it

  • crates/xcl/src/vfs.rs: split prepare_write_staged out of prepare_write and open_decision_staged_for / open_decision_staged out of open_decision_for so callers can defer commit_write until the file open succeeds.
  • crates/xcl/src/vfs_hooks.rs: pass staged decisions from hk_create_file_w, hk_create_file_a, and hk_create_file_2 into apply_open_decision, committing only on handle != INVALID_HANDLE_VALUE while preserving GetLastError(); add unit test failed_create_file_preserves_whiteout_and_last_error.

Tested

  • hardware (GPU + driver, CPU), Windows build, Rust version, debug / release: NVIDIA GeForce RTX 5080 (driver 32.0.16.1088), AMD Ryzen 9 9950X3D, Windows 11 10.0.26300, Rust 1.100.0 (stable-x86_64-pc-windows-msvc), DXC 1.9.2609.5, debug (scripts/test.ps1) and release (scripts/smoke.ps1)
  • .\scripts\test.ps1 (cargo build --workspace + cargo test --workspace -- --test-threads=4): 752 passed, 0 failed, 41 ignored (SKIPPED GPU tests: 2 no wave64 — gpu::recomp::tests::gpu_geometry_wave32_prefix_count_over_a_mask, gpu::recomp::tests::gpu_wave32_program_in_wave64_hardware)
  • cargo test -p xcl --lib vfs: 23 passed, 0 failed

Regression run

main:

xcl-smoke v1
commit: 47efa2ecea0a12934719ae69b81930cf02a4b1c3
gpu: NVIDIA GeForce RTX 5080
title: 9cc6a39e
seconds: 60
exit: 0x0
frames shown: 1226 (PresentX 1226)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 15341 MB

PR:

xcl-smoke v1
commit: b69731e6588009fb25c840a76594469b129ea3fd
gpu: NVIDIA GeForce RTX 5080
title: 9cc6a39e
seconds: 60
exit: 0x0
frames shown: 1643 (PresentX 1643)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14597 MB

Not tested

  • AMD GPUs and native wave64 hardware
  • other titles (Minecraft Preview, Unicorn Overlord, Fortnite, XDefiant) and Linux / Wine

AI use

  • OpenCode, Gemini 4 Neon: audited vfs.rs and vfs_hooks.rs, wrote the staged open fix and unit test, ran the test suite and scripts/smoke.ps1 regression runs, and drafted this PR description.
<!-- greyfinch-sync:ivall/xcl:issue:5474875427 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1362). Originally posted by [b3IKK](https://github.com/b3IKK) on 2026-11-24T15:12:43Z. --- `open_decision_for` called `prepare_write` before `CreateFileW` / `CreateFileA` / `CreateFile2` ran, eagerly clearing any whiteout on the target path. If the underlying `CreateFile*` call then failed (e.g. sharing violation, invalid flags/attributes, or `ERROR_ACCESS_DENIED`), no overlay file was created yet the whiteout was already gone—resurrecting the deleted original game file. This adds `prepare_write_staged` and `open_decision_staged` / `open_decision_staged_for` (following the existing `stage_write` / `commit_write` pattern from `d903a80`) and has `apply_open_decision` call `commit_write` only after `CreateFile*` returns a valid handle, while saving and restoring `GetLastError()` across `commit_write`'s whiteout persistence I/O so statuses like `ERROR_ALREADY_EXISTS` are not clobbered. **What is in it** - `crates/xcl/src/vfs.rs`: split `prepare_write_staged` out of `prepare_write` and `open_decision_staged_for` / `open_decision_staged` out of `open_decision_for` so callers can defer `commit_write` until the file open succeeds. - `crates/xcl/src/vfs_hooks.rs`: pass staged decisions from `hk_create_file_w`, `hk_create_file_a`, and `hk_create_file_2` into `apply_open_decision`, committing only on `handle != INVALID_HANDLE_VALUE` while preserving `GetLastError()`; add unit test `failed_create_file_preserves_whiteout_and_last_error`. **Tested** - hardware (GPU + driver, CPU), Windows build, Rust version, debug / release: NVIDIA GeForce RTX 5080 (driver 32.0.16.1088), AMD Ryzen 9 9950X3D, Windows 11 10.0.26300, Rust 1.100.0 (`stable-x86_64-pc-windows-msvc`), DXC 1.9.2609.5, debug (`scripts/test.ps1`) and release (`scripts/smoke.ps1`) - `.\scripts\test.ps1` (`cargo build --workspace` + `cargo test --workspace -- --test-threads=4`): 752 passed, 0 failed, 41 ignored (SKIPPED GPU tests: 2 `no wave64` — `gpu::recomp::tests::gpu_geometry_wave32_prefix_count_over_a_mask`, `gpu::recomp::tests::gpu_wave32_program_in_wave64_hardware`) - `cargo test -p xcl --lib vfs`: 23 passed, 0 failed **Regression run** main: ``` xcl-smoke v1 commit: 47efa2ecea0a12934719ae69b81930cf02a4b1c3 gpu: NVIDIA GeForce RTX 5080 title: 9cc6a39e seconds: 60 exit: 0x0 frames shown: 1226 (PresentX 1226) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 15341 MB ``` PR: ``` xcl-smoke v1 commit: b69731e6588009fb25c840a76594469b129ea3fd gpu: NVIDIA GeForce RTX 5080 title: 9cc6a39e seconds: 60 exit: 0x0 frames shown: 1643 (PresentX 1643) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14597 MB ``` **Not tested** - AMD GPUs and native wave64 hardware - other titles (Minecraft Preview, Unicorn Overlord, Fortnite, XDefiant) and Linux / Wine **AI use** - OpenCode, Gemini 4 Neon: audited `vfs.rs` and `vfs_hooks.rs`, wrote the staged open fix and unit test, ran the test suite and `scripts/smoke.ps1` regression runs, and drafted this PR description.
futurepro62 commented 2026-11-24 16:06:59 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by futurepro62 on 2026-11-24T15:17:05Z.


Full-suite run, since this PR has no test report yet. Tested exact head b69731e (on its base 930e8b4).

Tested

  • NVIDIA GeForce RTX 5070 Ti 16 GB (Blackwell, 32-lane waves only, mesh shaders), driver 616.64, Ryzen 7 9800X3D, Windows 11 Home 26300, Rust 1.100.0 MSVC, debug, D3D12 debug layer installed.
  • cargo build --workspace, then XCL_REQUIRE_GPU=mesh cargo test --workspace -- --test-threads=4: 752 passed, 0 failed, 41 ignored. SKIPPED (no wave64): gpu_geometry_wave32_prefix_count_over_a_mask, gpu_wave32_program_in_wave64_hardware.
  • The new tests ran and passed: failed_create_file_preserves_whiteout_and_last_error.

Not tested

  • AMD, a release build, a game (test run only).

AI use

  • Claude Code (Claude Opus 5.5) ran the tests and wrote this report. I checked it before posting.
<!-- greyfinch-sync:ivall/xcl:comment:7135766011 --> Imported from [ivall/xcl](https://github.com/ivall/xcl/pull/1362#issuecomment-7135766011). Originally posted by [futurepro62](https://github.com/futurepro62) on 2026-11-24T15:17:05Z. --- Full-suite run, since this PR has no test report yet. Tested exact head `b69731e` (on its base `930e8b4`). **Tested** - NVIDIA GeForce RTX 5070 Ti 16 GB (Blackwell, 32-lane waves only, mesh shaders), driver 616.64, Ryzen 7 9800X3D, Windows 11 Home 26300, Rust 1.100.0 MSVC, debug, D3D12 debug layer installed. - `cargo build --workspace`, then `XCL_REQUIRE_GPU=mesh cargo test --workspace -- --test-threads=4`: **752 passed, 0 failed, 41 ignored**. SKIPPED (no wave64): `gpu_geometry_wave32_prefix_count_over_a_mask`, `gpu_wave32_program_in_wave64_hardware`. - The new tests ran and passed: `failed_create_file_preserves_whiteout_and_last_error`. **Not tested** - AMD, a release build, a game (test run only). **AI use** - Claude Code (Claude Opus 5.5) ran the tests and wrote this report. I checked it before posting.
pickles976 commented 2026-11-24 16:07:01 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by pickles976 on 2026-11-24T15:20:34Z.


Review from the #1259 author — your fix and mine are complementary halves of the same third-party #577 audit, and we should sequence deliberately: you close failed-open resurrection (staging no longer removes whiteouts before the open succeeds); #1259 closes missing-parent conjuring (a guard at the top of prepare_write returning ERROR_PATH_NOT_FOUND, plus tests that a whited-out parent stays whited out and a game-only parent still stages fine). Semantic interaction is one line: my guard belongs at the top of what you rename to prepare_write_staged — happy to rebase onto whichever lands first, and your test suite plus my three cases form the joint acceptance set. Flagging it so the reviewer does not have to rediscover the overlap.

<!-- greyfinch-sync:ivall/xcl:comment:7135862726 --> Imported from [ivall/xcl](https://github.com/ivall/xcl/pull/1362#issuecomment-7135862726). Originally posted by [pickles976](https://github.com/pickles976) on 2026-11-24T15:20:34Z. --- Review from the #1259 author — your fix and mine are complementary halves of the same third-party #577 audit, and we should sequence deliberately: you close **failed-open resurrection** (staging no longer removes whiteouts before the open succeeds); #1259 closes **missing-parent conjuring** (a guard at the top of `prepare_write` returning `ERROR_PATH_NOT_FOUND`, plus tests that a whited-out parent stays whited out and a game-only parent still stages fine). Semantic interaction is one line: my guard belongs at the top of what you rename to `prepare_write_staged` — happy to rebase onto whichever lands first, and your test suite plus my three cases form the joint acceptance set. Flagging it so the reviewer does not have to rediscover the overlap.
DavidM1911 commented 2026-11-24 17:06:26 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-24T16:28:13Z.


Verification on RTX 3060 Ti (Windows 11), branch merged with current main:

  • cargo test -p xcl --lib: all passed, 0 failed, ~21 ignored.

Thanks!

<!-- greyfinch-sync:ivall/xcl:comment:7137715252 --> Imported from [ivall/xcl](https://github.com/ivall/xcl/pull/1362#issuecomment-7137715252). Originally posted by [DavidM1911](https://github.com/DavidM1911) on 2026-11-24T16:28:13Z. --- Verification on RTX 3060 Ti (Windows 11), branch merged with current `main`: - `cargo test -p xcl --lib`: all passed, 0 failed, ~21 ignored. Thanks!
xpatfussy69x commented 2026-11-25 12:06:32 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by xpatfussy69x on 2026-11-25T11:59:22Z.


Test report for head b69731e as pushed (not merged onto current main) – NVIDIA, wave32.

Tested

  • NVIDIA GeForce RTX 3060 12 GB (Ampere, 32-lane waves only), driver 32.0.16.2124; AMD Ryzen 5 7500F; 32 GB RAM; Windows NT 10.0.26300; Rust 1.100.0 (stable-x86_64-pc-windows-msvc); debug; DXC 1.9.2609.5
  • .\scripts\test.ps1 (cargo build --workspace + cargo test --workspace -- --test-threads=4): 752 passed, 0 failed, 41 ignored
  • SKIPPED GPU tests on this adapter: 2 (no wave64)
  • this PR's test failed_create_file_preserves_whiteout_and_last_error ran and passed
  • no XCL_SAMPLE_* data set (game-data tests not run)

Not tested

  • a title deleting and reopening its files; AMD / native wave64; release build; the head merged onto current main

AI use

  • Claude (Claude Opus 5.5) wrote the script that ran the suite on my PC, read the log and wrote and posted this report with my approval; the run is mine.
<!-- greyfinch-sync:ivall/xcl:comment:7161770875 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1362#issuecomment-7161770875). Originally posted by [xpatfussy69x](https://github.com/xpatfussy69x) on 2026-11-25T11:59:22Z. --- Test report for head `b69731e` as pushed (not merged onto current `main`) – NVIDIA, wave32. **Tested** - NVIDIA GeForce RTX 3060 12 GB (Ampere, 32-lane waves only), driver 32.0.16.2124; AMD Ryzen 5 7500F; 32 GB RAM; Windows NT 10.0.26300; Rust 1.100.0 (stable-x86_64-pc-windows-msvc); debug; DXC 1.9.2609.5 - `.\scripts\test.ps1` (`cargo build --workspace` + `cargo test --workspace -- --test-threads=4`): 752 passed, 0 failed, 41 ignored - SKIPPED GPU tests on this adapter: 2 (no wave64) - this PR's test `failed_create_file_preserves_whiteout_and_last_error` ran and passed - no `XCL_SAMPLE_*` data set (game-data tests not run) **Not tested** - a title deleting and reopening its files; AMD / native wave64; release build; the head merged onto current `main` **AI use** - Claude (Claude Opus 5.5) wrote the script that ran the suite on my PC, read the log and wrote and posted this report with my approval; the run is mine.
github-actions[bot] commented 2026-11-29 07:42:14 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by github-actions[bot] on 2026-11-29T07:42:14Z.


Nothing has happened on this PR for 3 days, so it is marked stale and will be closed in 4 days. A push or a comment takes the mark off: rebase it onto main if it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.

<!-- greyfinch-sync:ivall/xcl:comment:7252637570 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1362#issuecomment-7252637570). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-11-29T07:42:14Z. --- Nothing has happened on this PR for 3 days, so it is marked `stale` and will be closed in 4 days. A push or a comment takes the mark off: rebase it onto `main` if it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.
BBareth commented 2026-11-30 23:29:32 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by BBareth on 2026-11-30T23:29:32Z.


merge-check claim
head: b69731e658

<!-- greyfinch-sync:ivall/xcl:comment:7295179220 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1362#issuecomment-7295179220). Originally posted by [BBareth](https://github.com/BBareth) on 2026-11-30T23:29:32Z. --- merge-check claim head: b69731e6588009fb25c840a76594469b129ea3fd
brainhay5 commented 2026-11-30 23:36:55 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by brainhay5 on 2026-11-30T23:36:55Z.


merge-check claim
head: b69731e658

<!-- greyfinch-sync:ivall/xcl:comment:7295328770 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1362#issuecomment-7295328770). Originally posted by [brainhay5](https://github.com/brainhay5) on 2026-11-30T23:36:55Z. --- merge-check claim head: b69731e6588009fb25c840a76594469b129ea3fd
BBareth commented 2026-11-30 23:38:10 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by BBareth on 2026-11-30T23:38:10Z.


merge-check
base: d0832e614f
head: b69731e658
merge: clean
build: cargo build --workspace -> ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2891 passed, 0 failed, 51 ignored; 28 SKIPPED lines, as on the base; failing: none. The base alone, run earlier today on the same commit: 2890 passed, 0 failed, 51 ignored, 28 SKIPPED lines (22 no wave64, 2 no heap windows, 2 no d3d12SDKLayers.dll, 1 no D3D12 debug layer, 1 cannot disable the driver cache). The new test failed_create_file_preserves_whiteout_and_last_error ran and passed; create_always_reports_existing_game_file (adapted to the new signature) passed.
review: no blocking finding; two files (+133/-27), every line read. The three CreateFile hooks now stage the overlay write (open_decision_staged) and call the existing commit_write (remove the whiteout, record the write) only after the redirected open returned a valid handle, saving and restoring the last error around it so ERROR_ALREADY_EXISTS survives; open_decision / open_decision_for / prepare_write keep their behaviour for the other callers by committing at once. Two things to know, neither blocking: (1) for OPEN_EXISTING / OPEN_ALWAYS the original is still copied into the overlay before the open, so a failed open can leave that copy in the overlay, as before this PR (it has the original's content, so reads do not change); (2) between the successful open and commit_write another thread still sees the file as deleted for a moment. Not tested here: a retail title that hits a failing create on a deleted game file.
performance: none measurable: the same work as before on a successful open, plus a GetLastError / SetLastError pair.
verdict: safe to merge
hardware / tool and model: RTX 5070 Ti 16 GB, driver 621.24 (32.0.16.2124); i7-12700K; Windows 11 26200. Claude Code, Claude Fable 5.2 read the diff, ran the build and the suite and wrote this check.

<!-- greyfinch-sync:ivall/xcl:comment:7295352558 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1362#issuecomment-7295352558). Originally posted by [BBareth](https://github.com/BBareth) on 2026-11-30T23:38:10Z. --- merge-check base: d0832e614fa7d6ae027bb4feb27ccb9121f54a8f head: b69731e6588009fb25c840a76594469b129ea3fd merge: clean build: cargo build --workspace -> ok tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2891 passed, 0 failed, 51 ignored; 28 SKIPPED lines, as on the base; failing: none. The base alone, run earlier today on the same commit: 2890 passed, 0 failed, 51 ignored, 28 SKIPPED lines (22 no wave64, 2 no heap windows, 2 no d3d12SDKLayers.dll, 1 no D3D12 debug layer, 1 cannot disable the driver cache). The new test `failed_create_file_preserves_whiteout_and_last_error` ran and passed; `create_always_reports_existing_game_file` (adapted to the new signature) passed. review: no blocking finding; two files (+133/-27), every line read. The three CreateFile hooks now stage the overlay write (`open_decision_staged`) and call the existing `commit_write` (remove the whiteout, record the write) only after the redirected open returned a valid handle, saving and restoring the last error around it so `ERROR_ALREADY_EXISTS` survives; `open_decision` / `open_decision_for` / `prepare_write` keep their behaviour for the other callers by committing at once. Two things to know, neither blocking: (1) for `OPEN_EXISTING` / `OPEN_ALWAYS` the original is still copied into the overlay before the open, so a failed open can leave that copy in the overlay, as before this PR (it has the original's content, so reads do not change); (2) between the successful open and `commit_write` another thread still sees the file as deleted for a moment. Not tested here: a retail title that hits a failing create on a deleted game file. performance: none measurable: the same work as before on a successful open, plus a `GetLastError` / `SetLastError` pair. verdict: safe to merge hardware / tool and model: RTX 5070 Ti 16 GB, driver 621.24 (32.0.16.2124); i7-12700K; Windows 11 26200. Claude Code, Claude Fable 5.2 read the diff, ran the build and the suite and wrote this check.
Foniass commented 2026-12-01 05:31:11 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T05:31:11Z.


Triage (#1607) – head b69731e

No open or merged PR makes this change. Main already stages copy/move destinations (stage_write + commit_write), but open_decision_for still calls prepare_write, which removes the whiteout before CreateFile runs; this PR defers that commit until the handle is valid and keeps the last error.
No problems found in the diff.
Recommendation: keep open.

AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.

<!-- greyfinch-sync:ivall/xcl:comment:7301856551 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1362#issuecomment-7301856551). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-01T05:31:11Z. --- **Triage (#1607)** – head b69731e No open or merged PR makes this change. Main already stages copy/move destinations (`stage_write` + `commit_write`), but `open_decision_for` still calls `prepare_write`, which removes the whiteout before CreateFile runs; this PR defers that commit until the handle is valid and keeps the last error. No problems found in the diff. Recommendation: keep open. AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
throny commented 2026-12-01 07:04:30 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by throny on 2026-12-01T07:04:30Z.


merge-check claim
head: b69731e658

<!-- greyfinch-sync:ivall/xcl:comment:7303615131 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1362#issuecomment-7303615131). Originally posted by [throny](https://github.com/throny) on 2026-12-01T07:04:30Z. --- merge-check claim head: b69731e6588009fb25c840a76594469b129ea3fd
throny commented 2026-12-01 07:18:43 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by throny on 2026-12-01T07:18:43Z.


merge-check
base: 7d86c5d2b7
head: b69731e658 (unchanged since the claim)
merge: clean
build: cargo build --workspace -> ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2897 passed, 0 failed, 51 ignored; failing: none; base alone: 2896 passed, 0 failed, 51 ignored (the new test vfs_hooks::tests::failed_create_file_preserves_whiteout_and_last_error ran and passed)
review: Read the whole diff (nothing flagged by the diff scan). The overlay write is now staged (copy into the overlay) and commit_write (whiteout removal, write record) runs only after the real CreateFile* returns a valid handle, with GetLastError preserved across it; the old prepare_write / open_decision_for keep their behaviour for other callers. The new test drives apply_open_decision with a failing and a succeeding open and checks whiteout, write count and last-error, so it tests the change and runs unconditionally. Caveat: a failed open still leaves the staged copy in the overlay (only the whiteout and the record are protected); hk_create_file_a goes through the W original, so it is covered too.
performance: none by default; one extra GetLastError / SetLastError pair per successful redirected open.
verdict: safe to merge
hardware / tool and model: RTX 4080 16 GB (621.40), i9-12900K, Windows 11 26300; Claude Code, Claude Sonnet 5.5 ran the build and the suite and read the diff; Claude Opus 5.5 checked this report (the diff review is Sonnet's)

<!-- greyfinch-sync:ivall/xcl:comment:7303903413 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1362#issuecomment-7303903413). Originally posted by [throny](https://github.com/throny) on 2026-12-01T07:18:43Z. --- merge-check base: 7d86c5d2b7845695031eeea1327aa81b6c439323 head: b69731e6588009fb25c840a76594469b129ea3fd (unchanged since the claim) merge: clean build: cargo build --workspace -> ok tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2897 passed, 0 failed, 51 ignored; failing: none; base alone: 2896 passed, 0 failed, 51 ignored (the new test vfs_hooks::tests::failed_create_file_preserves_whiteout_and_last_error ran and passed) review: Read the whole diff (nothing flagged by the diff scan). The overlay write is now staged (copy into the overlay) and commit_write (whiteout removal, write record) runs only after the real CreateFile* returns a valid handle, with GetLastError preserved across it; the old prepare_write / open_decision_for keep their behaviour for other callers. The new test drives apply_open_decision with a failing and a succeeding open and checks whiteout, write count and last-error, so it tests the change and runs unconditionally. Caveat: a failed open still leaves the staged copy in the overlay (only the whiteout and the record are protected); hk_create_file_a goes through the W original, so it is covered too. performance: none by default; one extra GetLastError / SetLastError pair per successful redirected open. verdict: safe to merge hardware / tool and model: RTX 4080 16 GB (621.40), i9-12900K, Windows 11 26300; Claude Code, Claude Sonnet 5.5 ran the build and the suite and read the diff; Claude Opus 5.5 checked this report (the diff review is Sonnet's)
throny commented 2026-12-01 07:22:38 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by throny on 2026-12-01T07:22:38Z.


Merged at the checked head after a combined trial of #1362 and #3380 on main 7d86c5d2 (RTX 4080 16 GB, cargo test --workspace --no-fail-fast -- --test-threads=4: 2900 passed, 0 failed, 51 ignored, 25 SKIPPED lines). Two merge checks plus ours.

AI use: Claude Code (Claude Opus 5.5).

<!-- greyfinch-sync:ivall/xcl:comment:7303982315 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1362#issuecomment-7303982315). Originally posted by [throny](https://github.com/throny) on 2026-12-01T07:22:38Z. --- Merged at the checked head after a combined trial of #1362 and #3380 on `main` `7d86c5d2` (RTX 4080 16 GB, `cargo test --workspace --no-fail-fast -- --test-threads=4`: 2900 passed, 0 failed, 51 ignored, 25 SKIPPED lines). Two merge checks plus ours. AI use: Claude Code (Claude Opus 5.5).
brainhay5 commented 2026-12-01 11:48:02 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by brainhay5 on 2026-12-01T11:48:02Z.


merge-check claim withdrawn
Our automated merge-check loop claimed this PR and then stopped before posting a check — two loops were running at once and both are now shut down. No check from us is coming, so this claim is void and the head is free for someone else to take.

AI use: an agent posted this withdrawal.

<!-- greyfinch-sync:ivall/xcl:comment:7310159798 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1362#issuecomment-7310159798). Originally posted by [brainhay5](https://github.com/brainhay5) on 2026-12-01T11:48:02Z. --- merge-check claim withdrawn Our automated merge-check loop claimed this PR and then stopped before posting a check — two loops were running at once and both are now shut down. No check from us is coming, so this claim is void and the head is free for someone else to take. *AI use: an agent posted this withdrawal.*
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!1352
No description provided.