mirror of
https://github.com/amadvance/snapraid.git
synced 2026-12-05 06:10:13 -05:00
Adds new badonly and synced only options.
They are enabled with -e, --filter-error to limit the operations to only bad blocks and avoiding to restore not synced files.
This commit is contained in:
parent
d8907e8556
commit
c6c9e9130e
5 changed files with 313 additions and 259 deletions
|
|
@ -468,7 +468,11 @@ int main(int argc, char* argv[])
|
|||
filter_missing = 1;
|
||||
break;
|
||||
case 'e' :
|
||||
/* when processing only error, we filter both files and blocks */
|
||||
/* and we apply fixes only to synced ones */
|
||||
filter_error = 1;
|
||||
opt.badonly = 1;
|
||||
opt.syncedonly = 1;
|
||||
break;
|
||||
case 'p' :
|
||||
percentage = strtoul(optarg, &e, 10);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue