summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cmds-scrub.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/cmds-scrub.c b/cmds-scrub.c
index 5265a2b0..f9e2b40b 100644
--- a/cmds-scrub.c
+++ b/cmds-scrub.c
@@ -1514,14 +1514,17 @@ out:
}
close_file_or_dir(fdmnt, dirstream);
- if (nothing_to_resume)
- return 2;
if (err)
return 1;
- if (e_correctable)
+ if (nothing_to_resume)
+ return 2;
+ if (e_uncorrectable) {
+ ERR(!do_quiet, "ERROR: There are uncorrectable errors.\n");
return 3;
- if (e_uncorrectable)
- return 4;
+ }
+ if (e_correctable)
+ ERR(!do_quiet, "WARNING: errors detected during scrubbing, corrected.\n");
+
return 0;
}