VFS: clamp S:\ free and total bytes to config.pls_mb in GetDiskFreeSpaceEx (#106) #243
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!243
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/243/head"
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?
@slopgobblercobbler on GitHub · 2026-11-23 21:46 UTC · original
slopgobblercobbler:fix/pls-quota-clamp→main· +193 −9 · 1 files · 1 commits · closed without mergingAddresses #106 Item 4 (S:\ PLS disk space quota):
In
GetDiskFreeSpaceExWandGetDiskFreeSpaceExA, clamp persistent local storage (S:\) free, total, and available bytes toconfig.pls_mb(or the default 4096 MiB) instead of reporting the unconstrained host NVMe volume size.What is in it
crates/xcl/src/vfs_hooks.rs:is_pls_path()recognizesS:\,s:/,\\?\S:, and subdirectories case-insensitively.clamp_pls_space()caps total and free bytes to the PLS quota without precision loss when host free space is smaller.G:\,T:\,C:\, etc.) completely unchanged.PULARGE_INTEGERout-parameters.disk_free_space_ex_clamps_pls_and_preserves_non_plscovering path variations, quota capping, subpaths, and passthrough.Tested
cargo test -p xcl -- vfs(19 passed, 0 failed).cargo test --workspace(603 passed, 0 failed).Not tested
AI use
author-pls,verify-pls). Verified and reviewed independently.@raylitebull on GitHub · 2026-11-24 10:42 UTC · original
Closing as a duplicate of #231, which has already been merged into
main.Pull request closed