estoraged.cpp (a6e3b99df73312c465b4b174b167bb785e886a71) | estoraged.cpp (605085a6319630441a71fecc897465b419675bf6) |
---|---|
1 2#include "estoraged.hpp" 3 4#include "cryptErase.hpp" 5#include "cryptsetupInterface.hpp" 6#include "pattern.hpp" | 1 2#include "estoraged.hpp" 3 4#include "cryptErase.hpp" 5#include "cryptsetupInterface.hpp" 6#include "pattern.hpp" |
7#include "sanitize.hpp" |
|
7#include "verifyDriveGeometry.hpp" 8#include "zero.hpp" 9 10#include <libcryptsetup.h> 11#include <openssl/rand.h> 12 13#include <phosphor-logging/lg2.hpp> 14#include <xyz/openbmc_project/Common/error.hpp> --- 66 unchanged lines hidden (view full) --- 81 case EraseMethod::LogicalVerify: 82 { 83 Pattern myErasePattern(devPath); 84 myErasePattern.verifyPattern(); 85 break; 86 } 87 case EraseMethod::VendorSanitize: 88 { | 8#include "verifyDriveGeometry.hpp" 9#include "zero.hpp" 10 11#include <libcryptsetup.h> 12#include <openssl/rand.h> 13 14#include <phosphor-logging/lg2.hpp> 15#include <xyz/openbmc_project/Common/error.hpp> --- 66 unchanged lines hidden (view full) --- 82 case EraseMethod::LogicalVerify: 83 { 84 Pattern myErasePattern(devPath); 85 myErasePattern.verifyPattern(); 86 break; 87 } 88 case EraseMethod::VendorSanitize: 89 { |
90 Sanitize mySanitize(devPath); 91 mySanitize.doSanitize(); |
|
89 break; 90 } 91 case EraseMethod::ZeroOverWrite: 92 { 93 Zero myZero(devPath); 94 myZero.writeZero(); 95 break; 96 } --- 257 unchanged lines hidden --- | 92 break; 93 } 94 case EraseMethod::ZeroOverWrite: 95 { 96 Zero myZero(devPath); 97 myZero.writeZero(); 98 break; 99 } --- 257 unchanged lines hidden --- |