forked from localhorst/reHDD
protect lists with mutex
This commit is contained in:
@ -24,9 +24,11 @@ Shred::~Shred()
|
||||
*/
|
||||
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());
|
||||
|
||||
#ifdef DRYRUN
|
||||
Logger::logThis()->info("Shred-Task started - Drive: " + drive->getSerial());
|
||||
for(int i = 0; i<=500; i++)
|
||||
{
|
||||
if(drive->state != Drive::SHRED_ACTIVE)
|
||||
|
Reference in New Issue
Block a user