Whamcloud - gitweb
LU-15000 llog: read canceled records in llog_backup 98/48898/3
authorEtienne AUJAMES <etienne.aujames@cea.fr>
Mon, 17 Oct 2022 23:10:34 +0000 (16:10 -0700)
committerOleg Drokin <green@whamcloud.com>
Wed, 19 Apr 2023 03:32:16 +0000 (03:32 +0000)
commit7ba5dc8e895c693f68d49e7ffc46483710d67beb
tree00cbe3546e28d866b921ec723d0af5f8fef99b8c
parent1e7624b711e173baf893cec0bfc687ddee000fc7
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/fs/lustre-release/+/48898
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Reviewed-by: Etienne AUJAMES <eaujames@ddn.com>
Reviewed-by: Dominique Martinet <asmadeus@codewreck.org>
lustre/include/lustre_log.h
lustre/obdclass/llog.c
lustre/obdclass/llog_cat.c
lustre/obdclass/llog_test.c
lustre/obdclass/obd_config.c