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:
Andrea Mazzoleni 2014-12-29 08:50:20 +01:00
parent d8907e8556
commit c6c9e9130e
5 changed files with 313 additions and 259 deletions

View file

@ -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);