blob: 3b16641bcfb015819d7e0aec1f663242cdbfe7f0 [file] [log] [blame]
John Edward Broadbente6ffe702021-10-14 14:03:11 -07001#pragma once
2
3#include "erase.hpp"
4
5#include <string_view>
6
7class 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};