xfs/020: check that we have enough space to write out a huge fs
authorDarrick J. Wong <darrick.wong@oracle.com>
Fri, 3 Nov 2017 04:28:02 +0000 (21:28 -0700)
committerEryu Guan <eguan@redhat.com>
Sat, 4 Nov 2017 05:25:26 +0000 (13:25 +0800)
Make sure that we have enough free space on the test fs to create a
60t sparse filesystem.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Eryu Guan <eguan@redhat.com>
Signed-off-by: Eryu Guan <eguan@redhat.com>
tests/xfs/020

index 120492d43ed6ee6975bc84855189ee1b503cc0f2..b037369556f03b32c6b2435fe9d3cab610133e57 100755 (executable)
@@ -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