ext4: add sysfs attribute err_report_sec to control s_err_report timer

Add a new sysfs attribute "err_report_sec" to control the s_err_report
timer in ext4_sb_info. Writing '0' disables the timer, while writing
a non-zero value enables the timer and sets the timeout in seconds.

Signed-off-by: Baolin Liu <liubaolin@kylinos.cn>
Link: https://patch.msgid.link/20251211030256.28613-1-liubaolin12138@163.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
This commit is contained in:
Baolin Liu 2025-12-11 11:02:56 +08:00 • committed by Theodore Ts'o
commit d518215c27
3 changed files with 57 additions and 10 deletions