Allows sync and scrub to continue on input/output errors.

There is an upper limit on the allowed errors in
the new opt.io_error_limit variable.
This commit is contained in:
Andrea Mazzoleni 2014-12-30 09:45:35 +01:00
parent 3245083ed7
commit 0b59dc92a6
3 changed files with 144 additions and 88 deletions

View file

@ -68,6 +68,7 @@ struct snapraid_option {
int badonly; /**< In fix, fixes only the blocks marked as bad. */
int syncedonly; /**< In fix, fixes only files that are synced. */
int prehash; /**< Enables the prehash mode for sync. */
unsigned io_error_limit; /**< Max number of input/output errors before aborting. */
int force_zero; /**< Forced dangerous operations of synching files now with zero size. */
int force_empty; /**< Forced dangerous operations of synching disks now empty. */
int force_uuid; /**< Forced dangerous operations of synching disks with uuid changed. */