VFS: a .. in a console path stops at its mount's root #1170
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!1170
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1170"
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?
@emirduran707 on GitHub · 2026-11-24 12:49 UTC · original
emirduran707:vfs-mount-dotdot→main· +35 −5 · 2 files · 1 commits · openA console path with
..could leave the folder its drive is mounted on.apply_mountsput the rest of the path after the mount's target unchanged, soG:\..\data\hello.txtbecame<game folder>\..\data\hello.txt. That is a file next to the game folder, classified as a PC path, not the game'sdata\hello.txt. In the same way,T:\..\..\xreached outside the title's data folder, andS:\..\left the PLS quota. On Windows a..at a drive's root stays at the root (C:\..\xisC:\x), and on the console a mount is a drive.below_mountnow resolves.and..in what follows a mount's prefix, stopping at the mount's root. Both places inapply_mountsthat join a target and the rest of a path use it.What is in it
crates/xcl/src/vfs.rs:below_mount, used byapply_mounts; cases added tomounts_and_classification(G:\..\data\hello.txt,G:\data\..\..\..\save.dat,GAME:\.\..\data\.\hello.txt,G:\..,T:\..\..\escape.bin, and aGAME:path below the game folder).crates/xcl/tests/pls_quota.rs: the test listedS:\..\pls-otheramong paths that report the host's total. That path depended on the escape: it reached a folder outsideS:. It now checks thatS:\..\stays atS:'s root and reports the PLS quota.Tested
cargo test --workspace -- --test-threads=4ondbf5dd9: 741 passed, 0 failed, 41 ignored; no SKIPPED GPU testsmounts_and_classificationwithout the change inapply_mountsfails (G:\..\data\hello.txtgivesTranslated("…\data\hello.txt")instead ofGame { rel: "data\hello.txt" }); with itcargo test -p xcl --lib vfs::passes, 12 passedRegression run
main:
this PR:
Not tested
..in a console path; the smoke title's run is a regression check only.AI use
🤖 Generated with Claude Code
..in a console path stops at its mount's root dbf5dd9d83github-bot referenced this pull request2026-11-26 04:59:09 +00:00
@fromthemoonx on GitHub · 2026-11-24 13:36 UTC · original
NVIDIA run with the whole suite, since Not tested lists NVIDIA. The change is CPU-side, so the useful part here is the checks without the change.
Tested
stable-x86_64-pc-windows-msvc; debugdbf5dd9d83624f846accccb6f57a0b34f3eacc3c, which is on currentmain47efa2e:cargo build --workspace, thencargo test --workspace --no-fail-fast -- --test-threads=4: 741 passed, 0 failed, 41 ignored. SKIPPED (no wave64):gpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardware.vfs.rsas onmain, with this PR's tests):vfs::tests::mounts_and_classification:G:\..\data\hello.txtclassifies asTranslated("…\Temp\xcl_vfs_cls_…\data\hello.txt"), a file next to the game folder, instead ofGame { rel: "data\hello.txt" }.pls_quota::disk_free_space_ex_reports_pls_quota:S:\..\reports1023018004480(the host disk) instead of1048576(the PLS quota).vfs::tests, 10 runs: 10 of 10 passed (12 each)e2e+pls_quota, 3 runs: 3 of 3 passed (the test title's game-folder-untouched check included)Not tested
..in console paths; release build.AI use
@DavidM1911 on GitHub · 2026-11-25 07:46 UTC · original
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.)Thanks!
@S1m0ne1997 on GitHub · 2026-11-25 14:35 UTC · original · edited 2026-11-25 14:40 UTC
Test report for
dbf5dd9d83624f846accccb6f57a0b34f3eacc3c(this PR's head), for #1607.Tested
rustc 1.100.0 (0ef1bc386 2026-11-09)x86_64-pc-windows-msvc, debug.cargo build --workspace, thencargo test --workspace -- --test-threads=4at the head: 741 passed, 0 failed, 41 ignored.gpu_geometry_wave32_prefix_count_over_a_mask(no wave64),gpu_wave32_program_in_wave64_hardware(no wave64).Regression run (retail title,
scripts/smoke.ps1 -Seconds 60, release;mainbuilt from the commit in its block, this PR from its head, no uncommitted changes)main:
this PR:
Peak commit is over the 125 % rule: this PR's run peaked at 22 113 MB, 134 % of
main's 16 384 MB (frames: within 80 %). I can't tell from this whether the PR causes it: this branch is based on47efa2e490 commits older than themaincommit (06c9f55) its run is compared with and each side was run once. A smoke run of47efa2eitself or of this PR rebased onto currentmainwould separate the two.Not tested
AI use: Claude Code with Claude Opus 5.5 ran the build, the suite and the regression run and wrote this report at my request.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.