This commit is contained in:
Hendrik Schutter 2022-08-20 09:59:27 +02:00
parent 42668e54d2
commit e7a1cb1887
3 changed files with 4 additions and 3 deletions

View File

@ -13,7 +13,7 @@
// Drive handling Settings
#define WORSE_HOURS 19200 //mark drive if at this limit or beyond
#define WORSE_POWERUP 10000 //mark drive if at this limit or beyond
#define SHRED_ITERATIONS 3U
#define SHRED_ITERATIONS 1U
#define FROZEN_TIMEOUT 10 //After this timeout (minutes) the drive will be marked as frozen
// Logger Settings

1
shredTest Symbolic link
View File

@ -0,0 +1 @@
bin/release/shredTest

View File

@ -86,7 +86,7 @@ int Shred::shredDrive(Drive* drive, int* ipSignalFd)
while (ulDriveByteCounter < ulDriveByteSize)
{
int iBytesToShred = 0; //Bytes that will be overwritten in this chunk-iteration
/*
if((u32ChunkDimensionIndex == 0U) && (uiShredIterationCounter != (SHRED_ITERATIONS-1)))
{
//read new chunks from random source if needed and this is NOT the last shred iteration
@ -114,7 +114,7 @@ int Shred::shredDrive(Drive* drive, int* ipSignalFd)
#endif
}
*/
if((ulDriveByteSize-ulDriveByteCounter) < CHUNK_SIZE)
{
iBytesToShred = (ulDriveByteSize-ulDriveByteCounter);