Repository navigation
Conversation
Check visible original children before removing an overlay directory or publishing a directory whiteout. Native removal checks overlay children. Cover merged directories, whiteouts and visible subdirectories; update existing removal tests to empty directories before removing them. Validation: rust-analyzer reported no issues in the changed Rust files. The focused cargo test command failed in Windows dependencies on macOS; no tests ran. Windows tests and title smoke runs remain outstanding. Fixes xcl-dev#997 Assisted-by: omp (openai-codex/gpt-6-astra)
|
AMD test report for ac25fd1 (this PR's head, on Tested
main: PR: (On this title the peak commit swings between about 16 and 22 GB from run to run, as short peaks at about 16 s and 33 s. Here both runs caught them.) Review: I made the same fix for #997 locally before I saw this PR, and the two check the same things: visible game children, and the overlay through
Not tested: NVIDIA; Wine; a title that removes a non-empty folder of its own. Tested and written with Claude Code (Claude Opus 5.5). The runs were made on my machine. |
|
Merged as 47efa2e (your commit, without its README sentence: the README tells users what works, and this is how Windows behaves anyway) – thanks, and thanks to @emirduran707 for the counts and smoke runs. Checked: without the two |
|
I checked the pre-fix overlay case raised in the review above on Windows 11 at 47efa2e. A synthetic fixture started with only a directory-level whiteout in Offline workspace build passed. All 22 stock VFS and hook tests passed, as did the separate fixture. AI-assisted. Codex (GPT-6) added and ran the scratch fixture. |
Older runs could persist a parent whiteout without hiding each child individually. Restore that fixture so directory recreation still covers pushing the parent's whiteout down to its original children. Follow-up to the review of xcl-dev#1016. No runtime behavior change. Windows tests not run: the available VM has no configured build tools. Assisted-by: omp (openai-codex/gpt-6-astra)
RemoveDirectoryW could hide a non-empty game directory permanently because removal checked only overlay contents. This change checks visible original children before changing the overlay or publishing a whiteout. Fixes #997.
What is in it
crates/xcl/src/vfs.rs: reject visible original children, preserve the overlay on failure, and cover merged contents, whiteouts, subdirectories and persistence.crates/xcl/src/vfs_hooks.rs: update directory-enumeration coverage to empty a directory before removing it.README.md: document directory-removal behavior.Tested
cargo test -p xcl --lib vfs -- --test-threads=4on macOS exited with code 101 while compiling Windows dependencies. No tests executed in that attempt.Regression run
xcl-smokeblocks from main and clean PR headac25fd121b7761605955491accf4e2c208f9ebaa, using the same title and duration.Not tested
AI use
openai-codex/gpt-6-astra) to investigate the issue, write the implementation, regression tests and documentation, attempt local validation, and prepare this description. I ran the Windows 11 tests myself.