Whamcloud - gitweb
LU-15938 llog: llog_reader to detect more corruptions 34/47934/6
authorMikhail Pershin <mpershin@whamcloud.com>
Tue, 12 Jul 2022 06:40:38 +0000 (09:40 +0300)
committerOleg Drokin <green@whamcloud.com>
Mon, 8 Aug 2022 19:53:52 +0000 (19:53 +0000)
commitd914a5b7a49ac6b61c0191a0966d1f684a6957b6
treeb40190acba19efcd165a3bbfe9237a335c189025
parent53cb250382c1b0dc5063c0c37751df961082b36c
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
Reviewed-on: https://review.whamcloud.com/47934
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Alex Zhuravlev <bzzz@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/utils/llog_reader.c