From: Darrick J. Wong Date: Fri, 3 Nov 2017 04:28:02 +0000 (-0700) Subject: xfs/020: check that we have enough space to write out a huge fs X-Git-Tag: v2022.05.01~1797 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=68d2ebf90d94da7d619d7556f4a5663bcca8c8f6;p=users%2Fhch%2Fxfstests-dev.git xfs/020: check that we have enough space to write out a huge fs Make sure that we have enough free space on the test fs to create a 60t sparse filesystem. Signed-off-by: Darrick J. Wong Reviewed-by: Eryu Guan Signed-off-by: Eryu Guan --- diff --git a/tests/xfs/020 b/tests/xfs/020 index 120492d43..b03736955 100755 --- a/tests/xfs/020 +++ b/tests/xfs/020 @@ -49,6 +49,10 @@ _supported_fs xfs _supported_os Linux _require_test +# Writing a 60t fs requires about 2GB of space, so make sure +# we have plenty of space to do that. +_require_fs_space $TEST_DIR 2500000 + echo "Silence is golden" fsfile=$TEST_DIR/fsfile.$seq