Whamcloud - gitweb
LU-15000 llog: read canceled records in llog_backup 52/46552/3
authorEtienne AUJAMES <etienne.aujames@cea.fr>
Fri, 18 Feb 2022 12:26:00 +0000 (13:26 +0100)
committerOleg Drokin <green@whamcloud.com>
Mon, 30 May 2022 19:02:21 +0000 (19:02 +0000)
commitd8e2723b4e9409954846939026c599b0b1170e6e
treee49a074acb12308e97cf4d856b04300bed97bc1c
parent716de353b7b65fa506ce7f31f59c187a19f44b64
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.

Signed-off-by: Etienne AUJAMES <etienne.aujames@cea.fr>
Change-Id: I811e23de8f4545bed36a44fedc2638d7418830dd
Reviewed-on: https://review.whamcloud.com/46552
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: Dominique Martinet <qhufhnrynczannqp.f@noclue.notk.org>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: DELBARY Gael <gael.delbary@cea.fr>
Reviewed-by: Stephane Thiell <sthiell@stanford.edu>
Reviewed-by: Oleg Drokin <green@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