Whamcloud - gitweb
LU-14719 lod: distributed transaction check space 39/47039/8
authorLai Siyao <lai.siyao@whamcloud.com>
Wed, 30 Mar 2022 21:50:22 +0000 (17:50 -0400)
committerOleg Drokin <green@whamcloud.com>
Tue, 25 Oct 2022 17:32:01 +0000 (17:32 +0000)
commit6aee406c84b6b8fddf08b560acfcdf7c13c97e63
tree3acce56302c37a2e61f7094823b39b50181a647c
parentd4848d779bb8716c6df2fe5438fbe00997f87f3d
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.

Signed-off-by: Lai Siyao <lai.siyao@whamcloud.com>
Change-Id: I0922e9c8668e8b842d313576bd68b52fa5d434ac
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/47039
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Qian Yingjin <qian@ddn.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Oleg Drokin <green@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