verifyDriveGeometry.hpp (d3bfa7bb99d0609657a13b8ec410eb4396607e58) | verifyDriveGeometry.hpp (a6e3b99df73312c465b4b174b167bb785e886a71) |
---|---|
1#pragma once 2 3#include "erase.hpp" | 1#pragma once 2 3#include "erase.hpp" |
4#include "util.hpp" |
|
4 5#include <string_view> 6 7namespace estoraged 8{ 9 10class VerifyDriveGeometry : public Erase 11{ --- 5 unchanged lines hidden (view full) --- 17 VerifyDriveGeometry(std::string_view inDevPath) : Erase(inDevPath) 18 {} 19 20 /** @brief Test if input is in between the max and min expected sizes, 21 * and throws errors accordingly. 22 * 23 * @param[in] bytes - Size of the block device 24 */ | 5 6#include <string_view> 7 8namespace estoraged 9{ 10 11class VerifyDriveGeometry : public Erase 12{ --- 5 unchanged lines hidden (view full) --- 18 VerifyDriveGeometry(std::string_view inDevPath) : Erase(inDevPath) 19 {} 20 21 /** @brief Test if input is in between the max and min expected sizes, 22 * and throws errors accordingly. 23 * 24 * @param[in] bytes - Size of the block device 25 */ |
26 void geometryOkay() 27 { 28 geometryOkay(util::Util::findSizeOfBlockDevice(devPath)); 29 } |
|
25 void geometryOkay(uint64_t bytes); 26}; 27 28} // namespace estoraged | 30 void geometryOkay(uint64_t bytes); 31}; 32 33} // namespace estoraged |