VFS: a search on the bare mount root lists no entries #763
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!763
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/763/head"
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?
@pickles976 on GitHub · 2026-11-24 04:50 UTC · original
pickles976:fix/vfs-mount-root-empty-rel→main· +16 −0 · 1 files · 1 commits · closed without mergingVFS: a search on the bare mount root lists no entries
What is in it
collect_game_entriesran the search on the host folders whenrelwas empty:FindFirstFileW("G:\\")classified asGame { rel: "" }, the empty pattern madejoinreturn the bare overlay/game directory paths, and the title saw the host directories as entries of its own root — the third case of #577.rel.is_empty()→ERROR_FILE_NOT_FOUND, what Windows returns for a bare drive root, which has no entries.search_on_the_bare_mount_root_finds_nothingnext to the othercollect_game_entriestests.CREATE_ALWAYSon a directory) — verified by diff and by cross-running the repros in #577; the three cases are disjoint.Tested
x86_64-pc-windows-gnucross-build (llvm-mingw linker), run under Wine 9 + Mesa (debug profile):vfs_hooks::tests::search_on_the_bare_mount_root_finds_nothing— passedcargo test -p xcl --lib vfs_hooks::tests -- --test-threads=1(2 skips): 10 passed, 0 failed — the two skipped tests (whiteouts_survive_game_copy_file_over_mount_root,failed_copy_and_move_do_not_resurrect_whiteouts) abort the Wine process withunimplemented function KERNEL32.dll.CopyFile2on Wine 9; environment, not code (see #175 — current Wine implements it inkernelbase, where XCL looks for it)cargo test -p xcl --lib -- --test-threads=1(4 skips: the two above, plus the host-dependentcreate_list_reset_and_clear_state_track_initial_pso_on_d3d12— vkd3d host difference noted in #175 — andmapped_frame_dump_distinguishes_dark_bright_and_undecoded_content, which fails identically on the unmodified base commit in this environment): 284 passed, 0 failed — the process then died on an X-display teardown, not a test.Regression run
rel == "", i.e.FindFirstFileon a bare mount root — no other title-visible path changes. On Windows the behavior matches the OS error forFindFirstFileW("D:\\").Not tested
G:/T:(same code path, one call site).AI use
FindFirstFile("G:\\") passed an empty relative path to collect_game_entries, which then searched the overlay and game host folders themselves and exposed the host directories as title entries. Windows reports no entries for a bare drive root; return ERROR_FILE_NOT_FOUND. Third case of #577 (cases 1 and 2 are #644 and #618). Unit test added. Co-Authored-By: Claude <[email protected]>@pickles976 on GitHub · 2026-11-24 04:52 UTC · original
The one red check is the smoke-block requirement, and I can't produce those blocks from this environment — documenting it rather than leaving it implicit:
scripts/smoke.ps1needs Windows and a title; neither exists here.rel == ""(FindFirstFileon a bare mount root). No existing title-visible path changes; the unit test exercises exactly that branch, and the two sibling cases of #577 (#618, #644) cross-run green against this head.test-onlylabel (the workflow's own exemption, and arguably apt: the runtime change is one guard line whose only reachable path the new unit test covers), or for a smoke partner on Windows — runscripts/smoke.ps1on heade17f6f9and on a main commit, same title/time, and paste bothxcl-smoke v1blocks here; I'll fold them into the description. Same partnership offer the author of #494/#495 is making; this is the first PR from the Linux side of #520, so the friction is new territory for both of us.@ryosen0 on GitHub · 2026-11-24 05:05 UTC · original
Windows smoke partner for
e17f6f9, as offered — both blocks verbatim, same title and duration, RTX 3060 Ti 8 GB / Ryzen 7 9800X3D / driver 32.0.16.1742, Windows 11, release builds, no uncommitted changes.Full suite on the head first:
cargo test --workspace --no-fail-fast -- --test-threads=1— 702 passed, 0 failed, 41 ignored (2 GPU SKIPPED:no wave64on this adapter; the count includes your new bare-mount-root unit test).Main (
f4ce27c, this PR's merge-base):Head (
e17f6f9):Both reach the title's menus at a steady 60 presents / 2 s with no device removal; the frame-count difference (2336 vs 2422) is within the run-to-run variance we see between identical builds. The retail title does not hit the bare-mount-root path in this window, so this is a no-regression check on top of your unit test, not a repro of the branch itself — say so in the description if you fold these in.
AI use: GPT-6.2 Astra (API model selector) in DSH ran the build, suite and both smokes and drafted this comment; the human contributor reviewed the numbers before posting.
@MesshM on GitHub · 2026-11-24 05:08 UTC · original
Test run of
e17f6f9b47d2c7d86ebcf694d95f156c7775aa59on AMD RDNA4. I merged it onto currentmaind5442d2locally (clean merge) and tested that tree.Tested
stable-x86_64-pc-windows-msvc, debugcargo build --workspace+cargo test --workspace -- --test-threads=4on the merge: 705 passed, 0 failed, 41 ignored, exit code 0;xcllib tests 664 passed, 0 failed, 21 ignoredSKIPPED;search_on_the_bare_mount_root_finds_nothingpasses.Review: Duplicate of #761 (open): both add the same three lines (
if rel.is_empty() { return Err(vfs::ERROR_FILE_NOT_FOUND) }) tocollect_game_entries; only the tests differ, and #761's compares against a native drive root (FindFirstFileExW("C:\\")), which pins the behaviour to Windows'. Only one should land.Not tested: no retail title or regression run (I have no unpacked game), no
XCL_SAMPLE_*tests, release build; the PR's head on its old base was not run, only its merge ontomain.Run and review by Claude Code (Claude Opus 5.5) on this machine; the review points were checked against the code.
@pickles976 on GitHub · 2026-11-24 05:12 UTC · original
Closing this as a duplicate of #761 — checked after MesshM's review: upipibi's head has the same guard (
rel.is_empty()→ERROR_FILE_NOT_FOUND) and its test pins the behavior against the live nativeFindFirstFileExW("C:\\")instead of my hard-coded expectation, which is the better contract. Three minutes and a cleaner test; that's how it should sort.Carrying forward what this PR gathered, for #761's benefit:
xcl-smoke v1blocks (mainf4ce27cvs head, RTX 3060 Ti, 90 s, bothexit: 0x0, 0 device removals, 0 crashes, 60/60/60 presents) — blocks are verbatim above; they need re-running on #761's head, but the harness just proved itself.Thanks to @ryosen0 and @MesshM — first PR, first smoke partnership, first dignified dedup, all within eleven minutes.
@pickles976 on GitHub · 2026-11-24 05:12 UTC · original
Superseded by #761 (same guard, stronger test). Keeping the smoke-block precedent and the #577 matrix link here for #761's regression section.
Pull request closed