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:
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user