Message ID | 1508997735-10630-1-git-send-email-robbieko@synology.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
include Omar Sandoval. robbieko 於 2017-10-26 14:02 寫到: > From: Robbie Ko <robbieko@synology.com> > > 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> > --- > tests/btrfs/010 | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/tests/btrfs/010 b/tests/btrfs/010 > index ea201ad..00cac67 100755 > --- a/tests/btrfs/010 > +++ b/tests/btrfs/010 > @@ -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. -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/tests/btrfs/010 b/tests/btrfs/010 index ea201ad..00cac67 100755 --- a/tests/btrfs/010 +++ b/tests/btrfs/010 @@ -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.