bitmask-stack / bitmask-stack/carbonado-node
Fail write_file if the content will cause carbonadod to go over system capacity
Open
- Dominant language
- Rust
- Stars
- 3
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
As specified in the config.toml, check if the capacity specified will be exceeded when write_file is called. We can just check early on, the length of file_bytes, and do a worst-case heuristic of 2x on that size. Also keep in mind, that size is in bytes, but capacity is measured in gigabytes.
The size of only one volume needs to be checked, then it can be multiplied by FEC_M.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.