VFS: respect PLS quotas in legacy disk-space queries #2798
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2808"
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?
Imported from ivall/xcl. Originally posted by CryingLaughing on 2026-11-26T14:06:20Z.
The legacy
GetDiskFreeSpaceWandGetDiskFreeSpaceAcalls reported host-volume capacity on paths inside persistent local storage. Apply the existing byte-based PLS quota to the returned cluster counts and preserve native cluster geometry, results outside the quota mount, and missing-path failures.What is in it
crates/xcl/src/vfs_hooks.rs, share the PLS usage calculation between byte-based and legacy cluster queries. Clamp the reported free and total clusters to whole clusters within the quota.crates/xcl/tests/pls_quota.rsto check the wide and narrow calls, a full quota, and host, temporary-drive, and missing-path controls.Tested
a10a6ca355a80ba4a5ecb8df790a18e2e19560e0onb49be1836844fe0b0cdb3211dce3cb7fb4e21ac7. Its tree242afc49ec69759a3ec731bfd751eba96f398aa0matches the tested overlay. Windows 11 25H2 build 26200.9974, Intel Core i5-13600K, RTX 4080 driver 621.01, Rust 1.100.0 x64 MSVC, and DXC 1.8.2502.11. Debug build and test profiles.disk_free_space_ex_reports_pls_quotatest failed on the parent (0 passed, 1 failed). With 4,096-byte clusters, both APIs returned 271,951,544 free and 732,562,175 total clusters for a 1 MiB quota. On the fixed tree the same test passed 1/1. Both APIs returned 255 free and 256 total clusters before the quota filled, then 0 free and 256 total clusters at capacity. Host andT:controls retained native geometry and capacity. Missing paths retained their native failure behavior.cargo build --workspace --locked -j 4passed.cargo test --workspace --locked -j 4 -- --test-threads=4 --show-outputreported 1,435 passed, 0 failed, 47 ignored, with 29 explicit skip messages in the pass count across 37 harnesses.Regression run
Independent retail smoke by Anon64 compared release builds of main and this exact head on an RTX 3060 12 GB (driver 581.80), Core i9-14900KF, and Windows 11 build 26200. The 60-second runs used the same title. The head retained 100.1% of the baseline frames and used 100.9% of its peak commit, with zero crashes or device removals. The run did not establish whether the title reached the changed code.
main:
PR:
Not tested
Imported from ivall/xcl. Originally posted by Anon64 on 2026-11-26T14:44:11Z.
Regression run of
a10a6caon a newer retail title: no device removal, no crash, frames and commit within the limits.Setup: RTX 3060 12 GB (NVIDIA 581.80), i9-14900KF, Windows 11 26200, release builds of main
b49be18(this PR's base) and of this PR's exact head,scripts/smoke.ps1 -Game <title>for 60 s withXCL_NETWORK=0and A pressed every 4 s from 20 s. Main ran before and after a batch of 11 PRs and peaked at 23,855 and 23,844 MB, so the baseline held steady over the batch.main:
this PR:
100 % of main's frames, 100 % of its peak commit. One run each.
Not tested: the suite on this head; whether the title reaches the code this PR changes in its first 60 s; AMD.
AI use: Claude Code (Claude Opus 5.5) ran these runs on this machine and wrote this report.
Pull request closed