Whamcloud - gitweb
LU-15133 osp: only deactivate OSP on LAST_FID error
authorLai Siyao <lai.siyao@whamcloud.com>
Tue, 18 Jan 2022 21:56:26 +0000 (13:56 -0800)
committerAndreas Dilger <adilger@whamcloud.com>
Thu, 20 Jan 2022 06:46:14 +0000 (06:46 +0000)
commit2a664be79715c94765bc2b43be4bd684cbd26177
tree7b9dbc85d304d1b907b95d30aadddb9ca894318f
parentca2ddc57d180446189b410c7096e23f1b719f3cd
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.

Lustre-change: https://review.whamcloud.com/45309
Lustre-commit: f738156aa621c6c800d08af18ca52c39c40c3bd3

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