fix(monitor): record kernel I/O errors on the right disk

This commit is contained in:
MacRimi
2026-10-30 18:51:55 +01:00
parent c13d3de023
commit 89531bbab8
2 changed files with 39 additions and 2 deletions
+4 -2
View File
@@ -1402,9 +1402,11 @@ class JournalWatcher:
if syslog_id != 'kernel' and priority > 3:
return
# The kernel writes "dev sdf1, logical block ...": the name stops
# at the comma, and a partition is recorded on its disk.
io_patterns = [
r'blk_update_request: I/O error.*dev (\S+)',
r'Buffer I/O error on device (\S+)',
r'blk_update_request: I/O error.*dev ([^\s,]+)',
r'Buffer I/O error on dev(?:ice)? ([^\s,]+)',
r'SCSI error.*sd(\w)',
r'(ata\d+)[\.\d]*:.*error',
]