Commit graph

19 commits

Author SHA1 Message Date
Michael Schnerring
0dcbdcf12c make constants readonly 2020-09-08 22:51:29 +02:00
Michael Schnerring
fb842ea127 use long smartctl options to improve readability
run smartctl --test in --captive mode
remove smart test code duplication
add function documentation
2020-09-08 22:50:45 +02:00
Michael Schnerring
3a21b21eca refactor logging
use printf instead of echo to improve portability
rename echo_str to log_info
create log_header function to reduce code duplication
2020-09-08 21:45:19 +02:00
Michael Schnerring
8b3c16cebf implement dependency check 2020-09-08 21:22:57 +02:00
Michael Schnerring
cfaedeac28 simplify and document poll_selftest_complete() 2020-09-08 21:18:11 +02:00
Michael Schnerring
40e114da98 rename duration parameters for expressiveness
add more detailed comments to duration parameters
2020-09-08 21:17:26 +02:00
Michael Schnerring
492e4ca429 remove dependency on pcregrep and tr
move SMART info querying to well documented functions for readability
2020-09-08 21:16:36 +02:00
Michael Schnerring
0b36a8658a add .editorconfig; remove trailing whitespace
add myself to license.txt
2020-09-08 16:00:05 +02:00
Keith Nash
f07f20a864
Update disk-burnin.sh 2020-08-19 17:13:20 -05:00
Keith Nash
cb720c91e1
Changed several default settings
Changed Dry_Run value so that dry runs are no longer the default setting.
Changed badblocks call to exit immediately on first error.
Set logging directoryto current working directory using pwd command.
Reduced default tests so that we run:
 1> Short SMART test
 2> badblocks
 3> Extended SMART test
2020-08-19 16:32:40 -05:00
Nicolai Willems
dd74d421ce
Bew more lenient when reading serial-numbers
This is done to allow the log file to be generated uniqely even if the info is a bit hard to get.
2020-04-09 17:05:34 +02:00
Keith Nash
28cd95c52c Modify parsing of short and extended test durations
Modified parsing of short and extended test durations to accommodate the values returned by larger drives; we needed to strip out the '(' and ')' characters  surrounding the integer value in order to fetch it reliably.
2017-06-08 11:37:51 -05:00
Keith Nash
64f92d9084 Modified disk identification and log file-naming 2017-05-23 10:27:16 -05:00
Keith Nash
14beaa84a3 Added polling to check for SMART test completion 2017-05-12 11:36:38 -05:00
Keith Nash
19102688a6 POSIX-compliant version 2017-03-20 23:37:33 -05:00
Keith Nash
aac44b78e3 disk-burnin.sh 2017-03-15 00:58:08 -05:00
Keith Nash
bdeb1136c2 disk-burnin.sh 2017-03-14 12:44:56 -05:00
Keith Nash
15968d0782 Add files via upload 2017-03-14 11:32:52 -05:00
Keith Nash
8c69281350 Add files via upload 2017-03-14 10:50:00 -05:00