Whamcloud - gitweb
LU-14719 lod: distributed transaction check space
authorLai Siyao <lai.siyao@whamcloud.com>
Wed, 30 Mar 2022 21:50:22 +0000 (17:50 -0400)
committerAndreas Dilger <adilger@whamcloud.com>
Mon, 31 Oct 2022 04:09:02 +0000 (04:09 +0000)
commit4e43fe8d0c72dac812db00b3eedde4a93aa0f522
tree84c9c1392ed542b5375154e8486f6d2be5e7369b
parent11f85ca86e83f2c18261d470285506fa0f5418f0
LU-14719 lod: distributed transaction check space

Distributed transaction failure may cause file missing or disconnected
directories, to avoid failure on disk full, check remote MDT free
space before transaction start.

The block/inode watermarks in obd_statfs_info are used to check
whether MDT has enough free blocks/inodes.

Add sanity 230x.

Lustre-commit: 6aee406c84b6b8fddf08b560acfcdf7c13c97e63
Lustre-change: https://review.whamcloud.com/47039

Signed-off-by: Lai Siyao <lai.siyao@whamcloud.com>
Change-Id: I0922e9c8668e8b842d313576bd68b52fa5d434ac
Reviewed-by: Qian Yingjin <qian@ddn.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/47867
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
lustre/lod/lod_dev.c
lustre/lod/lod_internal.h
lustre/lod/lproc_lod.c
lustre/osp/osp_dev.c
lustre/osp/osp_precreate.c
lustre/tests/replay-single.sh
lustre/tests/sanity.sh