Whamcloud - gitweb
LU-15581 utils: add check_iam util 75/46575/17
authorArtem Blagodarenko <artem.blagodarenko@hpe.com>
Wed, 7 Sep 2022 12:46:54 +0000 (08:46 -0400)
committerOleg Drokin <green@whamcloud.com>
Tue, 13 Dec 2022 16:06:20 +0000 (16:06 +0000)
commit99d1f12c7c5ec2b4a8945559cffe3ef0c77093c0
tree53a216d29bb27d56e231050cfa5c4474c6b623ef
parentc95973fea184c2f5e623fe55f7886404ced82ec3
LU-15581 utils: add check_iam util

A tool for parsing and checking IAM files.
And a test to check utility works without segfaults for
corrupted files.

To process all files in OI catalog:
for f in /root/md65_ldiskfs/oi.16.*; do
echo $f; lustre/utils/check_iam -v $f;
done > output.txt 2>&1

Test-Parameters: trivial testlist=conf-sanity env=ONLY=134
HPE-bug-id: LUS-10501
Change-Id: I7a8e83bc2720040e48c953511801816fd3dd6288
Signed-off-by: Artem Blagodarenko <artem.blagodarenko@hpe.com>
Signed-off-by: Alexander Boyko <alexander.boyko@hpe.com>
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/46575
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Artem Blagodarenko <ablagodarenko@ddn.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/include/lustre/libiam.h
lustre/tests/conf-sanity.sh
lustre/utils/Makefile.am
lustre/utils/check_iam.c [new file with mode: 0644]
lustre/utils/libiam.c