Whamcloud - gitweb
LU-15938 llog: llog_reader to detect more corruptions
authorMikhail Pershin <mpershin@whamcloud.com>
Tue, 12 Jul 2022 06:40:38 +0000 (09:40 +0300)
committerAndreas Dilger <adilger@whamcloud.com>
Fri, 15 Jul 2022 04:25:15 +0000 (04:25 +0000)
commit954e00b84f1ee8a39225d8bc58708402fb9cd773
tree6c40701168daf90fcb808fd791f5acb278abdd1b
parent0584ca400b652a719a8c27ef651f77130d4787bc
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

Lustre-change: https://review.whamcloud.com/47934
Lustre-commit: 74bb524ee9b437777ecfe4e99fd032d8cac95cd0

Signed-off-by: Mikhail Pershin <mpershin@whamcloud.com>
Change-Id: Ic47dc6bb6cbdd9db6f888a0b892254403a628912
Reviewed-on: https://review.whamcloud.com/47949
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: Alex Zhuravlev <bzzz@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lustre/utils/llog_reader.c