generic/25[02]: increase filesystem size
authorDave Chinner <dchinner@redhat.com>
Thu, 22 Feb 2018 00:32:03 +0000 (11:32 +1100)
committerEryu Guan <eguan@redhat.com>
Thu, 22 Feb 2018 05:59:06 +0000 (13:59 +0800)
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>
tests/generic/250
tests/generic/252

index a8fd97e31ff015c98d6262a5a8e65461db83a0b6..6b0f7e3126af19fb79474467159986e923055570 100755 (executable)
@@ -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
index b506d599f638bb1a13e636c5c61e23664372e555..e102945d83b76a4a13ce05f3fc8744a28aff3687 100755 (executable)
@@ -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