]> www.infradead.org Git - users/hch/xfstests-dev.git/commitdiff
btrfs/010: fix offset in test Btrfs delalloc accounting overflow
authorRobbie Ko <robbieko@synology.com>
Thu, 26 Oct 2017 06:02:15 +0000 (14:02 +0800)
committerEryu Guan <eguan@redhat.com>
Thu, 26 Oct 2017 07:00:36 +0000 (15:00 +0800)
Found it when test btrfs delalloc accounting overflow, Fix offset
error.  We will fill in the gaps between the created extents, then
outstanding extents will all be merged into 1.

Signed-off-by: Robbie Ko <robbieko@synology.com>
Reviewed-by: Eryu Guan <eguan@redhat.com>
Signed-off-by: Eryu Guan <eguan@redhat.com>
tests/btrfs/010

index ea201ad2e34a6ce8c3502fd516e4aabf4bf6510d..00cac673955a30ade2deffb1cc75416fa4e7fe6e 100755 (executable)
@@ -58,7 +58,7 @@ done
 # Fill in the gaps between the created extents. The outstanding extents will
 # all be merged into 1, but there will still be 32k reserved.
 for ((i = 0; i < 32 * 1024; i++)); do
-       $XFS_IO_PROG -f -c "pwrite $((2 * 4096 * i + 1)) 4096" "$test_file" >>"$seqres.full"
+       $XFS_IO_PROG -f -c "pwrite $((2 * 4096 * i + 4096)) 4096" "$test_file" >>"$seqres.full"
 done
 
 # Flush the delayed allocations.