Whamcloud - gitweb
LU-15777 hsm: set changelog error for restore layout swap failure 21/47121/14
authorNikitas Angelinas <nikitas.angelinas@hpe.com>
Wed, 11 May 2022 22:54:08 +0000 (15:54 -0700)
committerOleg Drokin <green@whamcloud.com>
Tue, 4 Oct 2022 19:35:22 +0000 (19:35 +0000)
commit09fe64719b888cd212b6cffe923545b7650f230f
treee39460465e033714840338a1ab2f9f863624dd15
parent54c49e7c9adac78ac435d454e28cb6e2f8f089ab
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.

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-on: https://review.whamcloud.com/c/fs/lustre-release/+/47121
Reviewed-by: Sergey Cheremencev <sergey.cheremencev@hpe.com>
Reviewed-by: Etienne AUJAMES <eaujames@ddn.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
lustre/include/uapi/linux/lustre/lustre_user.h
lustre/mdt/mdt_coordinator.c