[metadata_dumper] Fix bug where ranges were appearing in all devices for small metadata.

Author: Teng-Feng Yang
This commit is contained in:
Joe Thornber 2013-07-09 13:28:36 +01:00
parent 2ea9cf9961
commit f2fe3ba2b3

View File

@ -71,6 +71,7 @@ namespace {
return false;
}
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_);