added custom implementation for shred

This commit is contained in:
2020-08-26 00:12:39 +02:00
parent a2a18bbc34
commit f39fbfbd54
12 changed files with 583 additions and 94 deletions

View File

@ -8,13 +8,18 @@
#ifndef REHDD_H_
#define REHDD_H_
#define DRYRUN
//#define DRYRUN
#define WORSE_HOURS 19200 //mark drive if at this limit or beyond
#define WORSE_POWERUP 4000 //mark drive if at this limit or beyond
#define SHRED_ITERATIONS 1
#define SELECTED_DRIVE vecDrives.at(i32SelectedEntry)
#define READ 0
#define WRITE 1
#include <iostream>
#include <string>
#include <fstream>
@ -27,16 +32,17 @@
#include <unistd.h>
#include <mutex>
#include <sys/select.h>
#include<algorithm>
#include <algorithm>
#include <cstring>
#include <sstream>
#include <iomanip>
#include <signal.h>
using namespace std;
#include "drive.h"
#include "smart.h"
#include "shred.h"
#include "shred/shred.h"
#include "delete.h"
#include "tui.h"