Space quota: stored-byte credits; space trash uncharged (#806) #807
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix-806"
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?
Closes #806 (live-check findings on v0.6.300).
credit()stats the written file and credits its stored size minus the replaced file's stored size, which is the walk's unit. Before this, plaintext credits under encryption let the cap slip by ~1–2 % within a cache window./spaces/<d>/.trashis outside the charged tree:spacePrefixexcludes it, andtreeSizeskips it at the space root. The trash layer's.metawrite passes in a full space.Renameleaving a capped tree (delete into trash, move out) credits the source immediately. A restore from trash is a move into the space and is checked.5f3b8571(TestCreditsInStoredUnits,TestDeleteInFullSpaceAndTrashNotCharged) → green;go test ./...ok.