From 2e248b42aeeb70c0ac2bb7af9be8c3bb534e10b2 Mon Sep 17 00:00:00 2001 From: Andrea Mazzoleni Date: Sun, 19 Apr 2015 21:10:58 +0200 Subject: [PATCH] Change the scrub error msg if there are too many errors --- cmdline/scrub.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmdline/scrub.c b/cmdline/scrub.c index 0c70489e..78d5f909 100644 --- a/cmdline/scrub.c +++ b/cmdline/scrub.c @@ -291,7 +291,7 @@ static int state_scrub_process(struct snapraid_state* state, struct snapraid_par msg_tag("error:%u:%s:%s: Read EIO error at position %u. %s\n", i, disk->name, esc(file->sub), block_file_pos(block), strerror(errno)); if (io_error >= state->opt.io_error_limit) { /* LCOV_EXCL_START */ - msg_error("DANGER! Unexpected input/output read error in a data disk, it isn't possible to scrub.\n"); + msg_error("DANGER! Too many input/output read error in a data disk, it isn't possible to scrub.\n"); msg_error("Ensure that disk '%s' is sane and that file '%s' can be accessed.\n", disk->dir, handle[j].path); msg_error("Stopping at block %u\n", i); ++io_error; @@ -369,7 +369,7 @@ static int state_scrub_process(struct snapraid_state* state, struct snapraid_par msg_tag("parity_error:%u:%s: Read EIO error. %s\n", i, lev_config_name(l), strerror(errno)); if (io_error >= state->opt.io_error_limit) { /* LCOV_EXCL_START */ - msg_error("DANGER! Unexpected input/output read error in the %s disk, it isn't possible to scrub.\n", lev_name(l)); + msg_error("DANGER! Too many input/output read error in the %s disk, it isn't possible to scrub.\n", lev_name(l)); msg_error("Ensure that disk '%s' is sane and can be read.\n", lev_config_name(l)); msg_error("Stopping at block %u\n", i); ++io_error;