Whamcloud - gitweb
LU-15000 llog: read canceled records in llog_backup
authorEtienne AUJAMES <etienne.aujames@cea.fr>
Mon, 17 Oct 2022 19:37:39 +0000 (12:37 -0700)
committerAndreas Dilger <adilger@whamcloud.com>
Thu, 27 Oct 2022 03:15:56 +0000 (03:15 +0000)
commit85b75975786a40b3b36a0df05c5906b7039d13d2
tree289d2790bc5be433fef6c2ad0ea7c87a7c8d029d
parent452d2320d57375dbc010aa24e1c69ae95b76bfbc
LU-15000 llog: read canceled records in llog_backup

llog_backup() do not reproduce index "holes" in the generated copy.
This could result to a llog copy indexes different from the source.
Then it might confuse the configuration update mechanism that rely on
indexes between the MGS source and the target copy.

This index gaps can be caused by "lctl --device MGS llog_cancel".

This patch add "raw" read mode to llog_process* to read canceled
records. So now llog_backup is able to reproduce an exact copy of
the original.

Lustre-change: https://review.whamcloud.com/46552
Lustre-commit: d8e2723b4e9409954846939026c599b0b1170e6e

Signed-off-by: Etienne AUJAMES <etienne.aujames@cea.fr>
Change-Id: I811e23de8f4545bed36a44fedc2638d7418830dd
Reviewed-by: Dominique Martinet <qhufhnrynczannqp.f@noclue.notk.org>
Reviewed-by: DELBARY Gael <gael.delbary@cea.fr>
Reviewed-by: Stephane Thiell <sthiell@stanford.edu>
Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/48894
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lustre/include/lustre_log.h
lustre/obdclass/llog.c
lustre/obdclass/llog_cat.c
lustre/obdclass/llog_test.c
lustre/obdclass/obd_config.c