forked from localhorst/reHDD
Disable delete after shred was once started. (#69)
documented here: localhorst/reHDD#65 Reviewed-on: localhorst/reHDD#69 Co-authored-by: localhorst <localhorst@mosad.xyz> Co-committed-by: localhorst <localhorst@mosad.xyz>
This commit is contained in:
@ -36,6 +36,7 @@ int Shred::shredDrive(Drive *drive, int *ipSignalFd)
|
||||
ostringstream address;
|
||||
address << (void const *)&(*drive);
|
||||
Logger::logThis()->info("Shred-Task started - Drive: " + drive->getModelName() + "-" + drive->getSerial() + " @" + address.str());
|
||||
drive->bWasShredStarted = true; //Mark drive as partly shredded
|
||||
|
||||
#ifdef DRYRUN
|
||||
for (int i = 0; i <= 500; i++)
|
||||
@ -48,6 +49,7 @@ int Shred::shredDrive(Drive *drive, int *ipSignalFd)
|
||||
write(*ipSignalFd, "A", 1);
|
||||
usleep(20000);
|
||||
}
|
||||
drive->bWasShredded = true;
|
||||
#endif
|
||||
|
||||
#ifndef DRYRUN
|
||||
|
Reference in New Issue
Block a user