aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Chinner <dchinner@redhat.com>2018-02-22 11:32:03 +1100
committerEryu Guan <eguan@redhat.com>2018-02-22 13:59:06 +0800
commit729381bda427effaddbae25af6395bb257aaf63a (patch)
tree0468e6a697de213f0b5b0d12ffd85b533f7b32e0
parentbf382b0e77307545ce9bfcfd19f17bd65c03cbb0 (diff)
downloadxfstests-dev-729381bda427effaddbae25af6395bb257aaf63a.tar.gz
generic/25[02]: increase filesystem size
On reflink+rmapbt XFs filesystems there isn't enough free space to run this test on the 64MB filesystem image created. It notruns with a curious error message - needs at least 0GB free: generic/250 [10:01:57] [10:01:58] [not run] generic/250 -- This test requires at least 0GB free on /mnt/scratch to run Fix this by increasing the size of the base filesystem image. Signed-Off-By: Dave Chinner <dchinner@redhat.com> Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com> Signed-off-by: Eryu Guan <eguan@redhat.com>
-rwxr-xr-xtests/generic/2506
-rwxr-xr-xtests/generic/2525
2 files changed, 6 insertions, 5 deletions
diff --git a/tests/generic/250 b/tests/generic/250
index a8fd97e31f..6b0f7e3126 100755
--- a/tests/generic/250
+++ b/tests/generic/250
@@ -54,10 +54,10 @@ _require_no_rtinherit
rm -f $seqres.full
-
+fssize=$((100 * 1048576))
echo "Format and mount"
-$XFS_IO_PROG -d -c "pwrite -S 0x69 -b 1048576 0 $((64 * 1048576))" $SCRATCH_DEV >> $seqres.full
-_scratch_mkfs_sized $((64 * 1048576)) > $seqres.full 2>&1
+$XFS_IO_PROG -d -c "pwrite -S 0x69 -b 1048576 0 $fssize" $SCRATCH_DEV >> $seqres.full
+_scratch_mkfs_sized $fssize > $seqres.full 2>&1
_dmerror_init
_dmerror_mount >> $seqres.full 2>&1
_dmerror_unmount
diff --git a/tests/generic/252 b/tests/generic/252
index b506d599f6..e102945d83 100755
--- a/tests/generic/252
+++ b/tests/generic/252
@@ -56,9 +56,10 @@ AIO_TEST="src/aio-dio-regress/aiocp"
rm -f $seqres.full
+fssize=$((100 * 1048576))
echo "Format and mount"
-$XFS_IO_PROG -d -c "pwrite -S 0x69 -b 1048576 0 $((64 * 1048576))" $SCRATCH_DEV >> $seqres.full
-_scratch_mkfs_sized $((64 * 1048576)) > $seqres.full 2>&1
+$XFS_IO_PROG -d -c "pwrite -S 0x69 -b 1048576 0 $fssize" $SCRATCH_DEV >> $seqres.full
+_scratch_mkfs_sized $fssize > $seqres.full 2>&1
_dmerror_init
_dmerror_mount >> $seqres.full 2>&1
_dmerror_unmount