Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fail write_file if the content will cause carbonadod to go over system capacity #28

Open
cryptoquick opened this issue Mar 16, 2023 · 0 comments
Assignees

Comments

@cryptoquick
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants