Whamcloud - gitweb
LU-15938 llog: more checks in llog_reader 12/48112/6
authorMikhail Pershin <mpershin@whamcloud.com>
Tue, 2 Aug 2022 12:41:52 +0000 (15:41 +0300)
committerOleg Drokin <green@whamcloud.com>
Tue, 22 Nov 2022 04:22:42 +0000 (04:22 +0000)
commit386ffcdbb4c9b89f798de4c83a51a3f020542c8b
treead41c3ebac55dd6d81aa9c1a531917e1df422111
parent978b296a76019bb93e5ef64336020e0b65e2636b
LU-15938 llog: more checks in llog_reader

Add more correctness checks and reports in llog_reader:
- better report wrong record length and chunk skipping case
- add tail check: tail id and len should be the same as in head
- better report for gap in record indeces
- test case with two corruption types:
  1) llog has bits set in bitmap beyond file end
  2) corruption in the middle

Signed-off-by: Mikhail Pershin <mpershin@whamcloud.com>
Change-Id: I0c2af6ae2592c94e14e90ead12e28104409313b2
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/48112
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Alexander <alexander.boyko@hpe.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/tests/sanity.sh
lustre/utils/llog_reader.c