diff --git a/thin-provisioning/metadata_dumper.cc b/thin-provisioning/metadata_dumper.cc index da8e12c..aa12cfc 100644 --- a/thin-provisioning/metadata_dumper.cc +++ b/thin-provisioning/metadata_dumper.cc @@ -71,10 +71,11 @@ namespace { return false; } - for (unsigned i = 0; i < n.get_nr_entries(); i++) { - mapping_tree_detail::block_time bt = n.value_at(i); - add_mapping(n.key_at(i), bt.block_, bt.time_); - } + if (loc.path[0] == dev_id_) + for (unsigned i = 0; i < n.get_nr_entries(); i++) { + mapping_tree_detail::block_time bt = n.value_at(i); + add_mapping(n.key_at(i), bt.block_, bt.time_); + } return true; }