Quota reporting: storage.Usager + GET /api/v1/quota (v0.3) #8
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/quota-reporting"
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?
First v0.3 increment: storage-capacity reporting.
storage.Usageroptional capability (Usage(ctx) (Usage, error)) +storage.Usage{Used,Free,Total}+ErrUnsupported.statfs(2), build-tagged (usage_unix.go/usage_other.go) so non-unix builds fall back toErrUnsupported.GET /api/v1/quota— feature-detected: backends withoutUsager(S3 has no bucket-wide capacity notion) return 501.Usageagainst a real tmpdir; API 200 (with Usager) / 501 (without).Additive and backward-compatible — no existing behaviour changes. Closes the first of the v0.3 "quotas" items; WebDAV RFC-4331 quota props (so Finder shows free space) are a planned follow-up.