diff --git a/thin-provisioning/metadata.cc b/thin-provisioning/metadata.cc index aa29f78..e3db414 100644 --- a/thin-provisioning/metadata.cc +++ b/thin-provisioning/metadata.cc @@ -109,7 +109,7 @@ metadata::metadata(std::string const &dev_path, open_type ot, sb_.data_mapping_root_ = mappings_->get_root(); sb_.device_details_root_ = details_->get_root(); sb_.data_block_size_ = data_block_size; - sb_.metadata_block_size_ = MD_BLOCK_SIZE; + sb_.metadata_block_size_ = MD_BLOCK_SIZE >> SECTOR_SHIFT; sb_.metadata_nr_blocks_ = tm_->get_bm()->get_nr_blocks(); break; @@ -177,7 +177,7 @@ metadata::metadata(block_manager<>::ptr bm, open_type ot, sb_.data_mapping_root_ = mappings_->get_root(); sb_.device_details_root_ = details_->get_root(); sb_.data_block_size_ = data_block_size; - sb_.metadata_block_size_ = MD_BLOCK_SIZE; + sb_.metadata_block_size_ = MD_BLOCK_SIZE >> SECTOR_SHIFT; sb_.metadata_nr_blocks_ = tm_->get_bm()->get_nr_blocks(); break;