Whamcloud - gitweb
LU-11721 lod: limit statfs ffree if less than OST ffree 67/34167/8
authorAndreas Dilger <adilger@whamcloud.com>
Sun, 3 Feb 2019 00:11:00 +0000 (17:11 -0700)
committerOleg Drokin <green@whamcloud.com>
Fri, 15 Mar 2019 23:46:21 +0000 (23:46 +0000)
commita829595add808d0fb09bab525c500d0aa6955883
tree0f13253b97b6139461e4fc4828820d5bdd059342
parent96aca3e4c0e4092f504ab75bbc156387222342c4
LU-11721 lod: limit statfs ffree if less than OST ffree

If the OSTs report fewer total free objects than the MDTs, then
use the free files count reported by the OSTs, since it represents
the minimum number of files that can be created in the filesystem
(creating more may be possible, but this depends on other factors).
This has always been what ll_statfs_internal() reports, but the
statfs aggregation via the MDT missed this step in lod_statfs().

Fix a minor defect in sanity test_418() that would let it loop
forever until the test was killed due to timeout if the "df -i"
and "lfs df -i" output did not converge.

Fixes: b500d5193360 ("LU-10018 protocol: MDT as a statfs proxy")
Fixes: 263e80f4572b ("LU-11721 tests: wait for statfs to update ...")
Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Change-Id: Id8d7b7edfd854f1ec30bfbbb85f04b0c973ebbe5
Reviewed-on: https://review.whamcloud.com/34167
Tested-by: Jenkins
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Jian Yu <yujian@whamcloud.com>
Reviewed-by: Nikitas Angelinas <nangelinas@cray.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/include/obd_class.h
lustre/llite/llite_lib.c
lustre/lmv/lmv_obd.c
lustre/lod/lod_dev.c
lustre/tests/sanity.sh