Commit 5661f259 authored by Theodore Ts'o's avatar Theodore Ts'o Committed by Ben Hutchings

ext4: clarify error count warning messages

commit ae0f78de upstream.

Make it clear that values printed are times, and that it is error
since last fsck. Also add note about fsck version required.
Signed-off-by: default avatarPavel Machek <pavel@ucw.cz>
Signed-off-by: default avatarTheodore Ts'o <tytso@mit.edu>
Reviewed-by: default avatarAndreas Dilger <adilger@dilger.ca>
Signed-off-by: default avatarBen Hutchings <ben@decadent.org.uk>
parent 1df779f8
...@@ -2726,10 +2726,11 @@ static void print_daily_error_info(unsigned long arg) ...@@ -2726,10 +2726,11 @@ static void print_daily_error_info(unsigned long arg)
es = sbi->s_es; es = sbi->s_es;
if (es->s_error_count) if (es->s_error_count)
ext4_msg(sb, KERN_NOTICE, "error count: %u", /* fsck newer than v1.41.13 is needed to clean this condition. */
ext4_msg(sb, KERN_NOTICE, "error count since last fsck: %u",
le32_to_cpu(es->s_error_count)); le32_to_cpu(es->s_error_count));
if (es->s_first_error_time) { if (es->s_first_error_time) {
printk(KERN_NOTICE "EXT4-fs (%s): initial error at %u: %.*s:%d", printk(KERN_NOTICE "EXT4-fs (%s): initial error at time %u: %.*s:%d",
sb->s_id, le32_to_cpu(es->s_first_error_time), sb->s_id, le32_to_cpu(es->s_first_error_time),
(int) sizeof(es->s_first_error_func), (int) sizeof(es->s_first_error_func),
es->s_first_error_func, es->s_first_error_func,
...@@ -2743,7 +2744,7 @@ static void print_daily_error_info(unsigned long arg) ...@@ -2743,7 +2744,7 @@ static void print_daily_error_info(unsigned long arg)
printk("\n"); printk("\n");
} }
if (es->s_last_error_time) { if (es->s_last_error_time) {
printk(KERN_NOTICE "EXT4-fs (%s): last error at %u: %.*s:%d", printk(KERN_NOTICE "EXT4-fs (%s): last error at time %u: %.*s:%d",
sb->s_id, le32_to_cpu(es->s_last_error_time), sb->s_id, le32_to_cpu(es->s_last_error_time),
(int) sizeof(es->s_last_error_func), (int) sizeof(es->s_last_error_func),
es->s_last_error_func, es->s_last_error_func,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment