ext4: export msg_count and warning_count via sysfs
authorDmitry Monakhov <dmtrmonakhov@yandex-team.ru>
Sat, 25 Jul 2020 12:33:13 +0000 (12:33 +0000)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 7 Aug 2020 18:12:36 +0000 (14:12 -0400)
commit1cf006ed19a887c22e085189c8b4a3cbf60d2246
treeb60311d4d55a7d38acbd8c3b6f535de3c9cfed9c
parent6dbd300129089ad57de20be89ab7c122b36a4c26
ext4: export msg_count and warning_count via sysfs

This numbers can be analized by system automation similar to errors_count.
In ideal world it would be nice to have separate counters for different
log-levels, but this makes this patch too intrusive.

Signed-off-by: Dmitry Monakhov <dmtrmonakhov@yandex-team.ru>
Link: https://lore.kernel.org/r/20200725123313.4467-1-dmtrmonakhov@yandex-team.ru
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/ext4.h
fs/ext4/super.c
fs/ext4/sysfs.c