Expand description
Storage quotas: an optional limit per user (users.storage_quota_bytes)
and one for the whole vault (vault_quota.total_bytes). Both count the
sizes of the stored file versions – identical content stored twice counts
twice, as it does for the user who uploads it; purged versions free their
share. Without a limit (the default) nothing is checked.
Every path that stores versions goes through files::store_uploads,
which calls ensure_room in its transaction; chunked uploads check
their announced size up front, before any bytes are sent.
Structs§
- Usage
- Limit and usage of one user or of the vault, in bytes.
Functions§
- parse_
limit_ mb - Parses the
--mbargument of the CLI: a number of MiB ornone. - set_
user_ quota - Sets (or with
Noneremoves) the storage quota of a user. Admins only; stored versions are never removed – a user over the new limit just cannot store more. - set_
vault_ quota - Sets (or with
Noneremoves) the storage quota of the whole vault. Admins only. - user_
usage - Limit and usage of a user.
- vault_
usage - Limit and usage of the whole vault.