Whamcloud - gitweb
LU-15777 hsm: set changelog error for restore layout swap failure
authorNikitas Angelinas <nikitas.angelinas@hpe.com>
Wed, 11 May 2022 22:54:08 +0000 (15:54 -0700)
committerAndreas Dilger <adilger@whamcloud.com>
Fri, 24 Nov 2023 09:25:50 +0000 (09:25 +0000)
commit191ef13bf56b28c7c0773b1cd6b0825c56d32ba6
tree86fca330af071e1ac31f723b5cbeed72e0e919fc
parent7670c1f0da3b0474895625708cd2953d2d4a8f3c
LU-15777 hsm: set changelog error for restore layout swap failure

Set the error code in the changelog record generated, if the layout swap
fails at the end of an HSM restore operation. Also, handle error code
overflow inside hsm_set_cl_error(), so that callers don't need to do
this themselves.

Lustre-change: https://review.whamcloud.com/47121
Lustre-commit: 09fe64719b888cd212b6cffe923545b7650f230f

Suggested-by: Olaf Weber <olaf.weber@hpe.com>
Suggested-by: Sergey Cheremencev <sergey.cheremencev@hpe.com>
Signed-off-by: Nikitas Angelinas <nikitas.angelinas@hpe.com>
Change-Id: I4ed2ebffa3bc1c6a0f87ea9f13734e344f77006f
HPE-bug-id: LUS-10863
Test-Parameters: testlist=sanity-hsm,sanity-pcc
Reviewed-by: Sergey Cheremencev <sergey.cheremencev@hpe.com>
Reviewed-by: Etienne AUJAMES <eaujames@ddn.com>
Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/53213
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lustre/include/uapi/linux/lustre/lustre_user.h
lustre/mdt/mdt_coordinator.c