mirror of
https://github.com/amadvance/snapraid.git
synced 2026-10-26 19:01:57 -04:00
Add a new undocumented --filter-block-error option
This commit is contained in:
parent
6e717a8239
commit
836fd6b1e0
3 changed files with 28 additions and 5 deletions
|
|
@ -801,8 +801,21 @@ static int block_is_enabled(struct snapraid_state* state, block_off_t i, struct
|
|||
unsigned j;
|
||||
unsigned l;
|
||||
|
||||
/* filter for bad blocks */
|
||||
if (state->opt.badblockonly) {
|
||||
snapraid_info info;
|
||||
|
||||
/* get block specific info */
|
||||
info = info_get(&state->infoarr, i);
|
||||
|
||||
/*
|
||||
* Filter specifically only for bad blocks
|
||||
*/
|
||||
return info_get_bad(info);
|
||||
}
|
||||
|
||||
/* filter for the parity */
|
||||
if (state->opt.badonly) {
|
||||
if (state->opt.badfileonly) {
|
||||
snapraid_info info;
|
||||
|
||||
/* get block specific info */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue