blob: b0f4970a1bb69bda750a977c2a2af48fdc54f235 [file] [log] [blame]
#pragma once
#include <string>
namespace estoraged
{
namespace util
{
/** @brief finds the size of the linux block device in bytes
* @param[in] devpath - the name of the linux block device
* @return size of a block device using the devPath
*/
uint64_t findSizeOfBlockDevice(const std::string& devPath);
/** @brief finds the predicted life left for a eMMC device
* @param[in] sysfsPath - The path to the linux sysfs interface
* @return the life remaing for the emmc, as a percentage.
*/
uint8_t findPredictedMediaLifeLeftPercent(const std::string& sysfsPath);
} // namespace util
} // namespace estoraged