memset
This commit is contained in:
parent
42668e54d2
commit
e7a1cb1887
|
@ -13,7 +13,7 @@
|
||||||
// Drive handling Settings
|
// Drive handling Settings
|
||||||
#define WORSE_HOURS 19200 //mark drive if at this limit or beyond
|
#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 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
|
#define FROZEN_TIMEOUT 10 //After this timeout (minutes) the drive will be marked as frozen
|
||||||
|
|
||||||
// Logger Settings
|
// Logger Settings
|
||||||
|
|
|
@ -86,7 +86,7 @@ int Shred::shredDrive(Drive* drive, int* ipSignalFd)
|
||||||
while (ulDriveByteCounter < ulDriveByteSize)
|
while (ulDriveByteCounter < ulDriveByteSize)
|
||||||
{
|
{
|
||||||
int iBytesToShred = 0; //Bytes that will be overwritten in this chunk-iteration
|
int iBytesToShred = 0; //Bytes that will be overwritten in this chunk-iteration
|
||||||
|
/*
|
||||||
if((u32ChunkDimensionIndex == 0U) && (uiShredIterationCounter != (SHRED_ITERATIONS-1)))
|
if((u32ChunkDimensionIndex == 0U) && (uiShredIterationCounter != (SHRED_ITERATIONS-1)))
|
||||||
{
|
{
|
||||||
//read new chunks from random source if needed and this is NOT the last shred iteration
|
//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
|
#endif
|
||||||
|
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
if((ulDriveByteSize-ulDriveByteCounter) < CHUNK_SIZE)
|
if((ulDriveByteSize-ulDriveByteCounter) < CHUNK_SIZE)
|
||||||
{
|
{
|
||||||
iBytesToShred = (ulDriveByteSize-ulDriveByteCounter);
|
iBytesToShred = (ulDriveByteSize-ulDriveByteCounter);
|
||||||
|
|
Loading…
Reference in New Issue