Whamcloud - gitweb
LU-15938 llog: llog_reader to detect more corruptions 34/47934/3
authorMikhail Pershin <mpershin@whamcloud.com>
Tue, 12 Jul 2022 06:40:38 +0000 (09:40 +0300)
committerMikhail Pershin <mpershin@whamcloud.com>
Wed, 13 Jul 2022 11:04:15 +0000 (14:04 +0300)
commit74bb524ee9b437777ecfe4e99fd032d8cac95cd0
tree194872fc9fd64085fe8885e41b0422d1dd23fa2f
parent210803a2475862464045b609eee43237d74e853b
LU-15938 llog: llog_reader to detect more corruptions

Improve llog_reader to determine more corruptions and report
errors
 - notify if llog bitmap has bits set with no records in llog
 - compare header records count with amount of records really
   found
 - fix amount of records to output, preventing wrong output of
   NOT SET record
 - list missing records in gap if found
 - count all errors found, add prefix 'error:' in output for
   better output processing by third-party scripts
 - don't exit immediately in case of error but continue if
   possible and output all read valid data

Signed-off-by: Mikhail Pershin <mpershin@whamcloud.com>
Change-Id: Ic47dc6bb6cbdd9db6f888a0b892254403a628912
lustre/utils/llog_reader.c