#include <device_health_probe.hpp>
Public Types | |
| using | CancelCallback = std::function<bool()> |
Static Public Member Functions | |
| static DeviceHealthReport | probe (const std::string &device_path, CancelCallback cancel_cb={}) |
Definition at line 40 of file device_health_probe.hpp.
| using DeviceHealthProbe::CancelCallback = std::function<bool()> |
Definition at line 42 of file device_health_probe.hpp.
|
static |
Definition at line 38 of file device_health_probe.cpp.
References DeviceHealthReport::device_path, EnumeratedButUnstable, Healthy, DeviceHealthReport::intermittent_failures, DeviceHealthReport::logical_sector_size, DiskReader::logical_sector_size(), NotReadable, DeviceHealthReport::open_ok, DiskReader::open_readonly(), PartiallyReadable, DeviceHealthReport::read_lba0_ok, DeviceHealthReport::read_tail_ok, ReadableWithErrors, DeviceHealthReport::samples, DiskReader::size(), DeviceHealthReport::size_suspicious, DeviceHealthReport::state, DeviceHealthReport::summary, DeviceHealthReport::total_size, and DeviceHealthReport::unstable_latency.
Referenced by DeviceEnumerator::enumerate_linux_block_devices(), and ScannerEngine::run_scan().