Architecture
Cache · Compaction · GC
Keeping the object layout clean over time.
BrewFS writes data in Slice form. Overwrites, truncates, and file updates may leave older slices and object blocks behind.
- Cache — read caching keeps hot blocks close to the mount (disk read cache is on the roadmap).
- Compaction — reduces slice fragmentation by rewriting heavily-sliced chunks.
- GC — removes object data that is no longer referenced by any slice.
brewfs gc --dry-run # report what would be removed
brewfs gc # actually remove unreferenced blocks
