mirror of
https://github.com/martijnvanbrummelen/nwipe.git
synced 2026-02-21 14:32:15 +00:00
Add a summary table to the log that shows each drives status
Add a summary table to the log that shows each drives status i.e. erased or failed, throughput, duration of wipe, model, serial no etc. In particular it benefits those that wipe many drives simultaneously in rack servers. At a glance any failed drives can be seen without having to browse back through the log. Especially useful in --nogui mode, but also useful in GUI mode.
This commit is contained in:
@@ -32,11 +32,14 @@ typedef enum nwipe_log_t_ {
|
||||
NWIPE_LOG_WARNING, // Things that the user should know about.
|
||||
NWIPE_LOG_ERROR, // Non-fatal errors that result in failure.
|
||||
NWIPE_LOG_FATAL, // Errors that cause the program to exit.
|
||||
NWIPE_LOG_SANITY // Programming errors.
|
||||
NWIPE_LOG_SANITY, // Programming errors.
|
||||
NWIPE_LOG_NOTIMESTAMP // logs the message without the timestamp
|
||||
} nwipe_log_t;
|
||||
|
||||
void nwipe_log( nwipe_log_t level, const char* format, ... );
|
||||
void nwipe_perror( int nwipe_errno, const char* f, const char* s );
|
||||
int nwipe_log_sysinfo();
|
||||
void nwipe_log_summary( nwipe_context_t**, int ); // This produces the wipe status table on exit
|
||||
void Determine_bandwidth_nomenclature( u64, char*, int );
|
||||
|
||||
#endif /* LOGGING_H_ */
|
||||
|
||||
Reference in New Issue
Block a user