[checksum] Support cache and era superblock

This commit is contained in:
Ming-Hung Tsai
2021-05-19 17:11:58 +08:00
parent 159dda9659
commit 511ae9e908
3 changed files with 17 additions and 7 deletions

View File

@@ -137,7 +137,7 @@ pub fn write_superblock(engine: &dyn IoEngine, _loc: u64, sb: &Superblock) -> Re
}
// calculate the checksum
write_checksum(b.get_data(), BT::SUPERBLOCK)?;
write_checksum(b.get_data(), BT::THIN_SUPERBLOCK)?;
// write
engine.write(&b)?;