mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
btrfs/010: fix offset in test Btrfs delalloc accounting overflow
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>
This commit is contained in:
+1
-1
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user