Skip to content

file_system: GetVolumeInformation and GetVolumePathName answer for the GAME: and T: roots - #8669

Closed
tedin7 wants to merge 5 commits into
ProjectLeonida:mainfrom
tedin7:c2-fs-get-volume-information
Closed

tedin7 wants to merge 5 commits into
ProjectLeonida:mainfrom
tedin7:c2-fs-get-volume-information

Conversation

@tedin7

@tedin7 tedin7 commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

What

Shim GetVolumeInformationA/W and GetVolumePathNameA/W for GAME:, G: and T:, forwarding host paths unchanged.

Why

Virtual drive queries otherwise reach the host and fail. G: reports the package volume; T: reports the overlay volume. Read-only queries resolve the overlay volume through its nearest existing ancestor when the overlay is absent, without creating either directory. ANSI queries keep the backing mount path Unicode and convert only the returned strings.

Tested

  • Review fix, p2 Wine, file_system_test: 468 checks, 6 existing MAXIMUM_ALLOWED failures; all three new host-volume identity checks pass. Package and overlay share a volume, so the test cannot distinguish their mapping paths or demonstrate cross-volume behavior.

  • Review fix, p2 Wine, file_system_test: 465 checks, 6 existing MAXIMUM_ALLOWED failures; the new A/W stability check passes. Package and overlay are on the same volume, so this setup does not demonstrate the old cross-volume failure.

  • p2, Wine, file_system_test: origin/main with the new checks 455 checks, 17 failures; with the change 455 checks, 6 failures. All 11 new checks pass; the same six MAXIMUM_ALLOWED failures occur on origin/main.

  • p2, Wine, file_system_test, revision 406fc09 with new checks: 459 checks, 8 failures; revision 0550e1d: 459 checks, 6 failures. Both new missing-directory checks fail before and pass after; the six MAXIMUM_ALLOWED failures persist in both. ANSI output conversion is checked; a non-ANSI mount path was not exercised.

  • Review fix, p2 Wine, file_system_test: 0550e1d with new tests 464 checks, 12 failures; d78b1a0 464 checks, 6 failures. All five new T: checks pass after the fix; six pre-existing MAXIMUM_ALLOWED failures remain. The first failed negative control creates the overlay, affecting subsequent controls in the baseline run.

  • python -I scripts/check_no_game_data.py runtime/shims/file_system.cpp runtime/test/file_system_test.cpp: passed.

  • GPU and driver: not applicable (filesystem test).

  • AI-assisted.

@ItsNotRexed: an exe PR, as you asked.

Claim: #8504 (comment)

@dcastell1

Copy link
Copy Markdown
Contributor

Tested on RTX 5090, 621.24, Windows 11: pass. file_system → 1/1 passed (2.69 s), built from this tree.

@Grimkaaah Grimkaaah left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Independent Linux CPU review (d78b1a03)

What changed: file_system GetVolumeInformation / GetVolumePathName for GAME: and T: roots; volume queries stay read-only (no scratch create).

Checked:

  • Diff review of shim + tests (runtime not built here).
  • parse_console(..., create_scratch=false) used on volume queries.

Looks correct for the described volume-query path; no game files.

@comtek21516

Copy link
Copy Markdown

Tested 212374856 on main at 867d922f0, in one tree with #8422, #8670, #8690, #8770, #8784 (six clean merges): pass.

For this change. file_system passes natively. Under Wine file_system fails on main already, on six MAXIMUM_ALLOWED checks (#5617). In this tree it reports 570 check(s), 6 failure(s) against 446 check(s), 6 failure(s) on main: the 124 checks that this PR and the other file_system_test.cpp change in the tree add all pass under Wine too.

Setup. Built with MSVC 14.52 (Visual Studio 18), Windows SDK 10.0.26100, Vulkan SDK 1.4.363.1, Ninja RelWithDebInfo on Windows Server 2025 (no Vulkan driver there), then the same binaries run through scripts/run_wine_tests.py under wine-11.0 (WineHQ stable, xvfb-run) on a Quadro RTX 4000 (Turing), NVIDIA 615.71.09, Ubuntu 22.04.5.

passed failed skipped
native Windows, this tree 147 4 124
Wine on the GPU machine, main 867d922f0 210 12 54
Wine on the GPU machine, this tree 210 12 54

Under Wine the tree is test by test the same as main. The four native failures are gameinput_host, d3d12_sparse_queue_family, vk_bindless_ps_tex and vk_bindless_ps_imgatomic, which fail the same way on main on that machine (#7452). The 12 under Wine are the same 12 as on main (host comparisons Wine cannot answer, and d3d12_xdxr_rt, d3d12_indirect_rt, d3d12_indirect_dispatch_count).

Because the six were built together, there is no per-PR negative control in this run: a regression would have shown as a difference from main, and there is none. No game files used. AI-assisted (Claude Code).

@memorypressure

Copy link
Copy Markdown

Verified 2123748 against main 6312c05 (clean merge, tree e13ae1fc1; recheck clean at 5d74c27). C++/Windows diff — not runnable here; CI is the execution gate (checks pending). check_no_game_data clean. Review: G:/T: volume queries resolve the backing volume host-side only (no host path reaches the title), parse_console(..., create_scratch=false) keeps queries read-only, the _a variants run the mount in Unicode and code-page only the two returned strings, and both GetVolumePathName buffers bound-check before writing. AI-assisted: yes. Tested on Linux (RTX 5080 host, CPU-only run).

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.

6 participants