detect frozen drives and show that the user

This commit is contained in:
2020-09-11 17:18:53 +02:00
parent 5f593682e2
commit 67b8e302be
7 changed files with 103 additions and 15 deletions

View File

@ -21,6 +21,7 @@ struct tfnge_stream
};
static struct tfnge_stream tfnge;
#endif
Shred::Shred()
{
@ -34,7 +35,7 @@ Shred::~Shred()
}
#endif
/**
* \brief shred drive with shred
* \param pointer of Drive instance
@ -51,7 +52,6 @@ void Shred::shredDrive(Drive* drive, int* ipSignalFd)
}
drive->setTaskPercentage(i+0.05);
write(*ipSignalFd, "A",1);
usleep(20000);
}
#endif