Adds a the new -e, --filter-error option for fix and check.

This commit is contained in:
Andrea Mazzoleni 2013-08-18 19:24:55 +02:00
parent 746c829bec
commit 746901d0be
6 changed files with 75 additions and 12 deletions

View file

@ -222,7 +222,7 @@ int state_status(struct snapraid_state* state)
printf("\n");
if (bad) {
printf("DANGER! In the array there are %u failing blocks!\n", bad);
printf("DANGER! In the array there are %u failing blocks!\n\n", bad);
printf("They are:");
@ -238,7 +238,10 @@ int state_status(struct snapraid_state* state)
printf(" %u", i);
}
printf("\n");
printf("\n\n");
printf("To fix them use the command 'snapraid --filter-error fix'.\n");
printf("The errors will disapper from the 'status' at the next 'scrub' command.\n");
} else {
printf("No silent error detected!\n");
}