Whamcloud - gitweb
LU-15938 llog: more checks in llog_reader
authorMikhail Pershin <mpershin@whamcloud.com>
Tue, 2 Aug 2022 12:41:52 +0000 (15:41 +0300)
committerAndreas Dilger <adilger@whamcloud.com>
Tue, 6 Dec 2022 05:00:37 +0000 (05:00 +0000)
commit9ee5113beb77133745cff7000cb18df783a77196
treedccfda90557a15f984f85ff6fdcd41a9005c0a28
parenta39bf25338633585f2e6a19f760cfd4fd2d1fb82
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

Lustre-change: https://review.whamcloud.com/48112
Lustre-commit: 386ffcdbb4c9b89f798de4c83a51a3f020542c8b

Signed-off-by: Mikhail Pershin <mpershin@whamcloud.com>
Change-Id: I0c2af6ae2592c94e14e90ead12e28104409313b2
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/49214
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Alex Zhuravlev <bzzz@whamcloud.com>
lustre/tests/sanity.sh
lustre/utils/llog_reader.c