From b423e7490eb4602cef34a14fe15053f5056b0d39 Mon Sep 17 00:00:00 2001 From: Andrea Mazzoleni Date: Sun, 15 Dec 2013 10:09:51 +0100 Subject: [PATCH] Prints data errors also for parity in scrub. --- scrub.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scrub.c b/scrub.c index 991e579e..28b19006 100644 --- a/scrub.c +++ b/scrub.c @@ -333,6 +333,10 @@ static int state_scrub_process(struct snapraid_state* state, struct snapraid_par ++error; error_on_this_block = 1; } else { + fprintf(stderr, "Data error in parity '%s' at position '%u'\n", lev_config_name(l), i); + fprintf(stderr, "WARNING! Unexpected data error in a parity disk! The block is now marked as bad!\n"); + fprintf(stderr, "Try with 'snapraid -e fix' to recover!\n"); + ++silent_error; silent_error_on_this_block = 1; }