From 85f3f0217c8f1512ce8307b01e829b4eae5728e5 Mon Sep 17 00:00:00 2001 From: Andrea Mazzoleni Date: Sun, 1 Feb 2026 18:26:27 +0100 Subject: [PATCH] Change some progress notifications to msg_progress from msg_info --- cmdline/scrub.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/cmdline/scrub.c b/cmdline/scrub.c index e9513312..e4a064f6 100644 --- a/cmdline/scrub.c +++ b/cmdline/scrub.c @@ -820,13 +820,13 @@ int state_scrub(struct snapraid_state* state, int plan, int olderthan) ps.plan = SCRUB_EVEN; } else if (plan == SCRUB_FULL) { ps.plan = SCRUB_FULL; - msg_info("Scrub plan: full. All data blocks will be checked.\n"); + msg_progress("Scrub plan: full. All data blocks will be checked.\n"); } else if (plan == SCRUB_NEW) { ps.plan = SCRUB_NEW; - msg_info("Scrub plan: new. Only blocks that have never been scrubbed will be checked.\n"); + msg_progress("Scrub plan: new. Only blocks that have never been scrubbed will be checked.\n"); } else if (plan == SCRUB_BAD) { ps.plan = SCRUB_BAD; - msg_info("Scrub plan: bad. Only blocks previously marked as bad will be checked.\n"); + msg_progress("Scrub plan: bad. Only blocks previously marked as bad will be checked.\n"); } else if (state->opt.force_scrub_at) { /* scrub the specified amount of blocks */ ps.plan = SCRUB_AUTO; @@ -850,14 +850,14 @@ int state_scrub(struct snapraid_state* state, int plan, int olderthan) if (plan >= 0) { if (olderthan >= 0) - msg_info("Scrub plan: auto. %d%% of the array, older than %d days, will be checked.\n", plan, olderthan); + msg_progress("Scrub plan: auto. %d%% of the array, older than %d days, will be checked.\n", plan, olderthan); else - msg_info("Scrub plan: auto. %d%% of the array, older than 10 days, will be checked.\n", plan); + msg_progress("Scrub plan: auto. %d%% of the array, older than 10 days, will be checked.\n", plan); } else { if (olderthan >= 0) - msg_info("Scrub plan: auto. 8.3%% of the array, older than %d days, will be checked.\n", olderthan); + msg_progress("Scrub plan: auto. 8.3%% of the array, older than %d days, will be checked.\n", olderthan); else - msg_info("Scrub plan: auto. 8.3%% of the array, older than 10 days, will be checked.\n"); + msg_progress("Scrub plan: auto. 8.3%% of the array, older than 10 days, will be checked.\n"); } }