Skip to content

Storage manager

David Vorick requested to merge storage-manager into renter-host-upgrades

This PR splits out the storage folder and sector management from the rest of the host, putting it in its own package. I have not finished updating the documentation, and I have not finished uncommenting all of the tests, the only test that remains is the smoke test. I uncommented most of the other tests, and did not run into any problems. All of the host tests are passing to the full extent that they were before this move happened.

Because the functions are now part of an exported external module, some of the concurrency conventions are being violated in the host (calling exported functions while under lock). I will clean that up in the coming week.

The host and storage layer are now properly separated, with an interface defining everything that needs to be happening for someone to write a separate one. Anyone looking to optimize or tweak the storage layer should have an easier time doing so, and will not threaten the other functions of the host by poking around.

Merge request reports