Whamcloud - gitweb
LU-16167 obdclass: fix lctl llog_print with skipped records 86/48586/8
authorEtienne AUJAMES <etienne.aujames@cea.fr>
Mon, 19 Sep 2022 10:23:47 +0000 (12:23 +0200)
committerOleg Drokin <green@whamcloud.com>
Mon, 14 Nov 2022 08:25:12 +0000 (08:25 +0000)
commitc6da54aa7546440339265c644538d3d109e46bde
treee46c2efe987955c8c902f85a7f16e406a8178577
parent0688719a51d9c659399439535c5c3f8c66a7b577
LU-16167 obdclass: fix lctl llog_print with skipped records

The 2a5b50d ignores the skipped records in configuration llog.
But if ioctl OBD_IOC_LLOG_PRINT return 0 record to display,
jt_llog_print_iter() will stop the processing and ignore the
non-skipped records at the end of the llog.

This patch returns to user space if the last index processed
(by llog_print_cb) is the last of llog file. If true,
jt_llog_print_iter() stops the processing.

Add regression test "conf-sanity test_123ai" for this issue.

Fixes: 2a5b50d ("LU-15142 lctl: fixes for set_param -P and llog_print")
Test-Parameters: testlist=conf-sanity env=ONLY=123ai,SLOW=yes,ONLY_REPEAT=10
Signed-off-by: Etienne AUJAMES <etienne.aujames@cea.fr>
Change-Id: I78395268c57555e4fd2a4048ccf5b6132ca2877f
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/48586
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/obdclass/llog_ioctl.c
lustre/tests/conf-sanity.sh
lustre/utils/obd.c