Report storage quota errors when save usage cannot be read #123
No reviewers
Labels
No labels
accessibility
already-solved
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
merged
needs-decision
needs-game-run
needs-rebase
not-merged
nvidia
obsolete
question
security
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/avatarmanz--VIctory-7900XTX!123
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-123"
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?
@feanorsun on GitHub · 2026-11-26 05:09 UTC · original
feanorsun:fix/storage-quota-read-errors→main· +104 −27 · 1 files · 1 commits · merged 2026-11-26 08:17 UTCRefs #30
XSystem previously treated an unreadable storage root as empty and ignored errors while enumerating entries or reading their metadata. A title could therefore receive the full quota in response to a space request even when the runtime could not measure its usage.
The usage walk now propagates the first error, including failures in nested directories. The quota query logs the path and OS error once per failed scan and returns
E_FAILwithout writing partial space information. A valid async prompt still starts withS_OK. Its final status and result both reportE_FAILwhen scanning fails, orE_ABORTwhen a successful scan shows insufficient quota.First launch creates the storage directory before installing the title. An empty directory still uses zero bytes, and a successful query uses the same quota and host free-space calculations. This addresses item 1. Usage caching (item 2) is left for follow-up.
Windows tests
With the regression assertion added to the original implementation, this exact test failed on a 1,000-byte request against a regular file used as the storage root. The final status and result were both
S_OK. The same assertion passes with the change and observesE_FAILfor both.The fixed Windows build listed and ran 5 targeted CPU tests. All 5 passed, with 151 unrelated tests filtered out. The fixtures covered an empty directory, 8 bytes across nested files, a missing root, an exclusively opened subdirectory, and the synchronous and asynchronous quota interfaces. Local verification used temporary storage only. No game, GPU, D3D12, or WARP tests were run.
@avatarmanz on GitHub · 2026-11-26 07:55 UTC · original
Merged into main in the next push (tests pass); thanks.