aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ext4
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2014-07-05 18:40:52 -0400
committerTheodore Ts'o <tytso@mit.edu>2014-07-05 18:40:52 -0400
commitae0f78de2c43b6fadd007c231a352b13b5be8ed2 (patch)
tree243984acac3b2d742acb0974a5fecf4aeb15761b /fs/ext4
parent61c219f5814277ecb71d64cb30297028d6665979 (diff)
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
Diffstat (limited to 'fs/ext4')
-rw-r--r--fs/ext4/super.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/fs/ext4/super.c b/fs/ext4/super.c
index b9b9aabfb4d2..342394772b6c 100644
--- a/fs/ext4/super.c
+++ b/fs/ext4/super.c
@@ -2809,10 +2809,11 @@ static void print_daily_error_info(unsigned long arg)
2809 es = sbi->s_es; 2809 es = sbi->s_es;
2810 2810
2811 if (es->s_error_count) 2811 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",
2813 le32_to_cpu(es->s_error_count)); 2814 le32_to_cpu(es->s_error_count));
2814 if (es->s_first_error_time) { 2815 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",
2816 sb->s_id, le32_to_cpu(es->s_first_error_time), 2817 sb->s_id, le32_to_cpu(es->s_first_error_time),
2817 (int) sizeof(es->s_first_error_func), 2818 (int) sizeof(es->s_first_error_func),
2818 es->s_first_error_func, 2819 es->s_first_error_func,
@@ -2826,7 +2827,7 @@ static void print_daily_error_info(unsigned long arg)
2826 printk("\n"); 2827 printk("\n");
2827 } 2828 }
2828 if (es->s_last_error_time) { 2829 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",
2830 sb->s_id, le32_to_cpu(es->s_last_error_time), 2831 sb->s_id, le32_to_cpu(es->s_last_error_time),
2831 (int) sizeof(es->s_last_error_func), 2832 (int) sizeof(es->s_last_error_func),
2832 es->s_last_error_func, 2833 es->s_last_error_func,