Skip to content

Commit ae0f78d

Browse files
committed
ext4: clarify error count warning messages
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: Pavel Machek <pavel@ucw.cz> Signed-off-by: Theodore Ts'o <tytso@mit.edu> Reviewed-by: Andreas Dilger <adilger@dilger.ca> Cc: stable@vger.kernel.org
1 parent 61c219f commit ae0f78d

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

‎fs/ext4/super.c‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2809,10 +2809,11 @@ static void print_daily_error_info(unsigned long arg)
28092809
es = sbi->s_es;
28102810

28112811
if (es->s_error_count)
2812-
ext4_msg(sb, KERN_NOTICE, "error count: %u",
2812+
/* fsck newer than v1.41.13 is needed to clean this condition. */
2813+
ext4_msg(sb, KERN_NOTICE, "error count since last fsck: %u",
28132814
le32_to_cpu(es->s_error_count));
28142815
if (es->s_first_error_time) {
2815-
printk(KERN_NOTICE "EXT4-fs (%s): initial error at %u: %.*s:%d",
2816+
printk(KERN_NOTICE "EXT4-fs (%s): initial error at time %u: %.*s:%d",
28162817
sb->s_id, le32_to_cpu(es->s_first_error_time),
28172818
(int) sizeof(es->s_first_error_func),
28182819
es->s_first_error_func,
@@ -2826,7 +2827,7 @@ static void print_daily_error_info(unsigned long arg)
28262827
printk("\n");
28272828
}
28282829
if (es->s_last_error_time) {
2829-
printk(KERN_NOTICE "EXT4-fs (%s): last error at %u: %.*s:%d",
2830+
printk(KERN_NOTICE "EXT4-fs (%s): last error at time %u: %.*s:%d",
28302831
sb->s_id, le32_to_cpu(es->s_last_error_time),
28312832
(int) sizeof(es->s_last_error_func),
28322833
es->s_last_error_func,

0 commit comments

Comments
 (0)