garage/src/block/lib.rs
Alex dc0b78cdb8
[block-ref-repair] Block refcount recalculation and repair
- We always recalculate the reference count of a block before deleting
  it locally, to make sure that it is indeed zero.

- If we had to fetch a remote block but we were not able to get it,
  check that refcount is indeed > 0.

- Repair procedure that checks everything
2024-03-19 16:20:22 +01:00

15 lines
190 B
Rust

#[macro_use]
extern crate tracing;
pub mod manager;
pub mod repair;
pub mod resync;
mod block;
mod layout;
mod metrics;
mod rc;
pub use block::zstd_encode;
pub use rc::CalculateRefcount;