1 #pragma once 2 3 #include "erase.hpp" 4 5 #include <string_view> 6 7 class VerifyDriveGeometry : public Erase 8 { 9 public: 10 /** @brief Creates a verifyDriveGeomentry erase object. 11 * 12 * @param[in] inDevPath - the linux device path for the block device. 13 */ 14 VerifyDriveGeometry(std::string_view inDevPath) : Erase(inDevPath) 15 {} 16 17 /** @brief Test if input is in between the max and min expected sizes, 18 * and throws errors accordingly. 19 * 20 * @param[in] bytes - Size of the block device 21 */ 22 void geometryOkay(uint64_t bytes); 23 }; 24