Introduce a buffer class that has its own allocator which makes sure

the buffer is 512 byte aligned.

Open metadata devices with O_DIRECT to let us work with live metadata.
This commit is contained in:
Joe Thornber
2012-05-17 13:05:26 +01:00
parent e25c211591
commit 2598648e62
13 changed files with 99 additions and 56 deletions

View File

@@ -186,10 +186,15 @@ namespace {
void
thin_provisioning::metadata_dump(metadata::ptr md, emitter::ptr e, bool repair)
{
optional<uint64_t> md_snap = md->sb_.metadata_snap_ ?
optional<uint64_t>(md->sb_.metadata_snap_) :
optional<uint64_t>();
e->begin_superblock("", md->sb_.time_,
md->sb_.trans_id_,
md->sb_.data_block_size_,
md->data_sm_->get_nr_blocks());
md->data_sm_->get_nr_blocks(),
md_snap);
details_extractor::ptr de(new details_extractor);