Skip to content

VFS: a search on the bare mount root lists no entries - #763

Closed
pickles976 wants to merge 1 commit into
xcl-dev:mainfrom
pickles976:fix/vfs-mount-root-empty-rel
Closed

pickles976 wants to merge 1 commit into
xcl-dev:mainfrom
pickles976:fix/vfs-mount-root-empty-rel

Conversation

@pickles976

Copy link
Copy Markdown

VFS: a search on the bare mount root lists no entries

What is in it

Tested

Regression run

  • Not provided: this environment cannot run a title. The new branch is selected only when rel == "", i.e. FindFirstFile on a bare mount root — no other title-visible path changes. On Windows the behavior matches the OS error for FindFirstFileW("D:\\").

Not tested

  • Windows native; smoke on a real title; volume-name roots other than G:/T: (same code path, one call site).

AI use

  • Agent (Claude via omp) did the analysis, patch, and test runs; human (pickles976) reviewed before posting.

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>
@pickles976

Copy link
Copy Markdown
Author

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:

@ryosen0

ryosen0 commented Nov 24, 2026

Copy link
Copy Markdown
Contributor

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 wave64 on this adapter; the count includes your new bare-mount-root unit test).

Main (f4ce27c, this PR's merge-base):

xcl-smoke v1
commit: f4ce27ceb6d1b0576d0c659b713b674778bf1968
gpu: NVIDIA GeForce RTX 3060 Ti
title: ScarlettGame
seconds: 90
exit: 0x0
frames shown: 2336 (PresentX 2336)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14473 MB

Head (e17f6f9):

xcl-smoke v1
commit: e17f6f9b47d2c7d86ebcf694d95f156c7775aa59
gpu: NVIDIA GeForce RTX 3060 Ti
title: ScarlettGame
seconds: 90
exit: 0x0
frames shown: 2422 (PresentX 2422)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14610 MB

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

MesshM commented Nov 24, 2026

Copy link
Copy Markdown

Test run of e17f6f9b47d2c7d86ebcf694d95f156c7775aa59 on AMD RDNA4. I merged it onto current main d5442d2 locally (clean merge) and tested that tree.

Tested

  • AMD Radeon RX 9060 XT 16 GB (RDNA4), driver 32.0.32029.2010; Ryzen 7 5700X, 64 GB RAM, Windows 11 Pro build 26200 (native Windows), Rust 1.100.0 stable-x86_64-pc-windows-msvc, debug
  • cargo build --workspace + cargo test --workspace -- --test-threads=4 on the merge: 705 passed, 0 failed, 41 ignored, exit code 0; xcl lib tests 664 passed, 0 failed, 21 ignored
  • 0 SKIPPED; search_on_the_bare_mount_root_finds_nothing passes.

Review: Duplicate of #761 (open): both add the same three lines (if rel.is_empty() { return Err(vfs::ERROR_FILE_NOT_FOUND) }) to collect_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 onto main.

Run and review by Claude Code (Claude Opus 5.5) on this machine; the review points were checked against the code.

@pickles976

Copy link
Copy Markdown
Author

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 native FindFirstFileExW("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:

Thanks to @ryosen0 and @MesshM — first PR, first smoke partnership, first dignified dedup, all within eleven minutes.

@pickles976

Copy link
Copy Markdown
Author

Superseded by #761 (same guard, stronger test). Keeping the smoke-block precedent and the #577 matrix link here for #761's regression section.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants