Repository navigation
VFS: a search on the bare mount root lists no entries - #763
pickles976 wants to merge 1 commit into
Conversation
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 xcl-dev#577 (cases 1 and 2 are xcl-dev#644 and xcl-dev#618). Unit test added.
Co-Authored-By: Claude <noreply@anthropic.com>
|
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:
|
|
Windows smoke partner for Full suite on the head first: Main ( Head ( 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. |
|
Test run of Tested
Review: Duplicate of #761 (open): both add the same three lines ( Not tested: no retail title or regression run (I have no unpacked game), no Run and review by Claude Code (Claude Opus 5.5) on this machine; the review points were checked against the code. |
|
Closing this as a duplicate of #761 — checked after MesshM's review: upipibi's head has the same guard ( Carrying forward what this PR gathered, for #761's benefit:
Thanks to @ryosen0 and @MesshM — first PR, first smoke partnership, first dignified dedup, all within eleven minutes. |
VFS: 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 VFS: CREATE_ALWAYS on a game directory, or a write below a game file, leaves an overlay entry that hides the original #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 VFS: CREATE_ALWAYS on a game directory, or a write below a game file, leaves an overlay entry that hides the original #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 Linux (Wine + vkd3d-proton): a retail game reaches whatmainreaches on Windows; the obstacle is replaced vtables — proposal: proxies #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 Linux (Wine + vkd3d-proton): a retail game reaches whatmainreaches on Windows; the obstacle is replaced vtables — proposal: proxies #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