#include <rescue_imager.hpp>
Public Types | |
| using | ProgressCallback = std::function<void(uint64_t, uint64_t)> |
| using | CancelCallback = std::function<bool()> |
Static Public Member Functions | |
| static bool | create_image (const std::string &device_path, const std::string &image_path, RescueImageReport &report, std::string &error, ProgressCallback progress_cb={}, CancelCallback cancel_cb={}) |
Definition at line 20 of file rescue_imager.hpp.
| using RescueImager::CancelCallback = std::function<bool()> |
Definition at line 23 of file rescue_imager.hpp.
| using RescueImager::ProgressCallback = std::function<void(uint64_t, uint64_t)> |
Definition at line 22 of file rescue_imager.hpp.
|
static |
Definition at line 9 of file rescue_imager.cpp.
References FaultTolerantReader::bad_block_map(), BadBlockMap::bad_ranges(), RescueImageReport::bad_ranges, RescueImageReport::bytes_requested, RescueImageReport::bytes_written, RescueImageReport::image_path, RescueImageReport::logs, RescueImageReport::map_path, BadBlockMap::merge_adjacent(), FaultTolerantReader::open(), FaultTolerantReader::read_rescue(), FaultTolerantReader::set_cancel_callback(), FaultTolerantReader::size(), and BadBlockMap::slow_ranges().
Referenced by RecoveryExporter::create_rescue_image().