diff --git a/include/reHDD.h b/include/reHDD.h index 08d2ac4..a471314 100644 --- a/include/reHDD.h +++ b/include/reHDD.h @@ -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 diff --git a/shredTest b/shredTest new file mode 120000 index 0000000..1ad320a --- /dev/null +++ b/shredTest @@ -0,0 +1 @@ +bin/release/shredTest \ No newline at end of file diff --git a/src/shred.cpp b/src/shred.cpp index f28af85..f50feb8 100644 --- a/src/shred.cpp +++ b/src/shred.cpp @@ -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);