Whamcloud - gitweb
LU-15133 osp: only deactivate OSP on LAST_FID error 09/45309/7
authorLai Siyao <lai.siyao@whamcloud.com>
Wed, 20 Oct 2021 05:46:17 +0000 (01:46 -0400)
committerOleg Drokin <green@whamcloud.com>
Thu, 6 Jan 2022 22:02:44 +0000 (22:02 +0000)
commitf738156aa621c6c800d08af18ca52c39c40c3bd3
tree10421c1d7036d146bb5e463aa569ad758cc6d1b0
parentbc2d7f065af6b4f9a69bc7d3d250b948b33a1018
LU-15133 osp: only deactivate OSP on LAST_FID error

ofd_get_info_hdl() should return -EFAULT upon LAST_FID error, which
is the same as LAST_ID error.

osp_get_lastfid_from_ost() should deactivate OSP only upon -EFAULT,
which means reading LAST_FID on OST failed. This can avoid unnecessary
admin intervention.

Add sanity 27S.

Signed-off-by: Lai Siyao <lai.siyao@whamcloud.com>
Change-Id: Ib78c8994c0398dd4b4db32005abd018933ef3a7c
Reviewed-on: https://review.whamcloud.com/45309
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Alex Zhuravlev <bzzz@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/include/obd_support.h
lustre/ofd/ofd_dev.c
lustre/osp/osp_precreate.c
lustre/tests/sanity.sh