[thin] store the device id in single_mapping_tree_damage_visitor for error reporting

1. fix the damage type for single_mapping_tree_damage_visitor
2. walk_mapping_tree() now requires the device id
3. update metadata_dumper and thin_ls for the new walk_mapping_tree()
This commit is contained in:
Ming-Hung Tsai
2016-06-19 21:35:11 +08:00
parent a3eac8d5d8
commit e8f1bda1a5
4 changed files with 19 additions and 11 deletions

View File

@ -139,9 +139,11 @@ namespace thin_provisioning {
mapping_tree_detail::damage_visitor &visitor);
void walk_mapping_tree(single_mapping_tree const &tree,
uint64_t dev_id,
mapping_tree_detail::mapping_visitor &mv,
mapping_tree_detail::damage_visitor &dv);
void check_mapping_tree(single_mapping_tree const &tree,
uint64_t dev_id,
mapping_tree_detail::damage_visitor &visitor);
}