#include <bad_block_map.hpp>
Public Member Functions | |
| void | mark_readable (uint64_t offset, uint64_t length) |
| void | mark_bad (uint64_t offset, uint64_t length) |
| void | mark_slow (uint64_t offset, uint64_t length) |
| std::vector< BlockRange > | readable_ranges () const |
| std::vector< BlockRange > | bad_ranges () const |
| std::vector< BlockRange > | slow_ranges () const |
| bool | is_known_bad (uint64_t offset, uint64_t length) const |
| void | merge_adjacent () |
Private Member Functions | |
| void | mark (uint64_t offset, uint64_t length, RangeState state) |
| std::vector< BlockRange > | filtered (RangeState state) const |
Private Attributes | |
| std::vector< BlockRange > | ranges_ |
Definition at line 18 of file bad_block_map.hpp.
| std::vector< BlockRange > BadBlockMap::bad_ranges | ( | ) | const |
Definition at line 21 of file bad_block_map.cpp.
References Bad, and filtered().
Referenced by RescueImager::create_image().
|
private |
Definition at line 79 of file bad_block_map.cpp.
References ranges_.
Referenced by bad_ranges(), readable_ranges(), and slow_ranges().
| bool BadBlockMap::is_known_bad | ( | uint64_t | offset, |
| uint64_t | length ) const |
Definition at line 29 of file bad_block_map.cpp.
|
private |
Definition at line 73 of file bad_block_map.cpp.
References merge_adjacent(), and ranges_.
Referenced by mark_bad(), mark_readable(), and mark_slow().
| void BadBlockMap::mark_bad | ( | uint64_t | offset, |
| uint64_t | length ) |
Definition at line 9 of file bad_block_map.cpp.
Referenced by FaultTolerantReader::read_rescue_recursive().
| void BadBlockMap::mark_readable | ( | uint64_t | offset, |
| uint64_t | length ) |
Definition at line 5 of file bad_block_map.cpp.
References mark(), and Readable.
Referenced by FaultTolerantReader::read_at(), and FaultTolerantReader::read_rescue_recursive().
| void BadBlockMap::mark_slow | ( | uint64_t | offset, |
| uint64_t | length ) |
Definition at line 13 of file bad_block_map.cpp.
Referenced by FaultTolerantReader::read_rescue_recursive().
| void BadBlockMap::merge_adjacent | ( | ) |
Definition at line 41 of file bad_block_map.cpp.
References ranges_.
Referenced by RescueImager::create_image(), and mark().
| std::vector< BlockRange > BadBlockMap::readable_ranges | ( | ) | const |
Definition at line 17 of file bad_block_map.cpp.
References filtered(), and Readable.
| std::vector< BlockRange > BadBlockMap::slow_ranges | ( | ) | const |
Definition at line 25 of file bad_block_map.cpp.
References filtered(), and Slow.
Referenced by RescueImager::create_image().
|
private |
Definition at line 35 of file bad_block_map.hpp.
Referenced by filtered(), is_known_bad(), mark(), and merge_adjacent().