sanitize.hpp (d4554f2a17686e36a77ac4a3619efd685fcbb15c) | sanitize.hpp (15b63e12bdc3f3116fb841349dd4f1cd17a8398b) |
---|---|
1#pragma once 2 3#include "erase.hpp" 4 5#include <linux/mmc/ioctl.h> 6#include <sys/ioctl.h> 7#include <sys/types.h> 8 --- 65 unchanged lines hidden (view full) --- 74 * 75 * @param[in] inDevPath - the linux device path for the block device. 76 * @param[in] IOCTLWrapper - This is a ioctl wrapper, it can be used for 77 * testing 78 */ 79 Sanitize(std::string_view inDevPath, 80 std::unique_ptr<IOCTLWrapperInterface> inIOCTL = 81 std::make_unique<IOCTLWrapperImpl>()) : | 1#pragma once 2 3#include "erase.hpp" 4 5#include <linux/mmc/ioctl.h> 6#include <sys/ioctl.h> 7#include <sys/types.h> 8 --- 65 unchanged lines hidden (view full) --- 74 * 75 * @param[in] inDevPath - the linux device path for the block device. 76 * @param[in] IOCTLWrapper - This is a ioctl wrapper, it can be used for 77 * testing 78 */ 79 Sanitize(std::string_view inDevPath, 80 std::unique_ptr<IOCTLWrapperInterface> inIOCTL = 81 std::make_unique<IOCTLWrapperImpl>()) : |
82 Erase(inDevPath), 83 ioctlWrapper(std::move(inIOCTL)) | 82 Erase(inDevPath), ioctlWrapper(std::move(inIOCTL)) |
84 {} 85 86 /** @brief sanitize the drive, using eMMC specified erase commands 87 * 88 * param[in] driveSize - size of the drive in bytes 89 */ 90 void doSanitize(uint64_t driveSize); 91 --- 32 unchanged lines hidden --- | 83 {} 84 85 /** @brief sanitize the drive, using eMMC specified erase commands 86 * 87 * param[in] driveSize - size of the drive in bytes 88 */ 89 void doSanitize(uint64_t driveSize); 90 --- 32 unchanged lines hidden --- |