Adds the new -L, --error-limit options.

And also sets the default limit to 100.
This commit is contained in:
Andrea Mazzoleni 2014-12-30 10:44:11 +01:00
parent 0b59dc92a6
commit 0c4c1f78a4
6 changed files with 101 additions and 8 deletions

View file

@ -21,6 +21,10 @@ snapraid [\-c, \-\-conf CONFIG]
[\-p, \-\-percentage PERC] [\-o, \-\-older\-than DAYS]
.PD 0
.PP
.PD
[\-l, \-\-log FILE]
.PD 0
.PP
.PD
[\-Z, \-\-force\-zero] [\-E, \-\-force\-empty]
.PD 0
@ -34,11 +38,15 @@ snapraid [\-c, \-\-conf CONFIG]
.PD 0
.PP
.PD
[\-v, \-\-verbose] [\-l, \-\-log FILE]
[\-S, \-\-start BLKSTART] [\-B, \-\-count BLKCOUNT]
.PD 0
.PP
.PD
[\-S, \-\-start BLKSTART] [\-B, \-\-count BLKCOUNT]
[\-L, \-\-error\-limit NUMBER]
.PD 0
.PP
.PD
[\-v, \-\-verbose]
.PD 0
.PP
.PD
@ -871,6 +879,16 @@ to enclose the name in \[dq], like \[dq]>>result.log\[dq].
To output the log to standard output or standard error,
you can use respectively \[dq]>&1\[dq] and \[dq]>&2\[dq].
.TP
.B \-L, \-\-error\-limit
Sets a new error limit before stopping execution.
By default SnapRAID stops if it encouters more than 100
Input/Output errors, meaning that likely a disk is going to
die.
This options affects \[dq]sync\[dq] and \[dq]scrub\[dq], that are allowed
to continue after the first bunch of disk errors, to try
to complete at most their operations.
Instead, \[dq]check\[dq] and \[dq]fix\[dq] always stop at the first error.
.TP
.B \-S, \-\-start BLKSTART
Starts the processing from the specified
block number. It could be useful to retry to check