[cache_check] A whole bunch of superblock checks

This commit is contained in:
Joe Thornber
2013-10-07 15:21:45 +01:00
parent 7cd4728fbf
commit 42fd6b928b
8 changed files with 416 additions and 165 deletions

View File

@@ -7,8 +7,6 @@ using namespace caching;
//----------------------------------------------------------------
namespace {
using namespace superblock_detail;
unsigned const METADATA_CACHE_SIZE = 1024;
// FIXME: duplication
@@ -133,9 +131,7 @@ metadata::commit_hints()
void
metadata::commit_superblock()
{
write_ref superblock = tm_->get_bm()->superblock_zero(SUPERBLOCK_LOCATION, superblock_validator());
superblock_disk *disk = reinterpret_cast<superblock_disk *>(superblock.data().raw());
superblock_traits::pack(sb_, *disk);
write_superblock(tm_->get_bm(), sb_);
}
//----------------------------------------------------------------