generic/033: add xfs delalloc indirect block depletion reproducer

XFS allocates extra indirect blocks for delayed allocation extents at
write time. When delalloc extents are split, the existing indirect block
reservation was historically divided up evenly among the new extents
even though the overall requirement for two extents could exceed the
requirement for the original. Repeated delalloc extent splits ultimately
leads to extents with 0 indirect blocks and in turn leads to assert
failures in XFS.

Add a test to stress indirect block reservation for delayed allocation
extents. The test converts a single delalloc extent to many and operates
on the remaining extents to detect or trigger potential problems.

Signed-off-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Eryu Guan <eguan@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
This commit is contained in:
Brian Foster
2014-09-29 13:10:25 +10:00
committed by Dave Chinner
parent 85fac07e87
commit 44d8ae4351
3 changed files with 89 additions and 0 deletions
+1
View File
@@ -35,6 +35,7 @@
030 auto quick rw
031 auto quick prealloc rw
032 auto quick rw
033 auto quick rw
053 acl repair auto quick
062 attr udf auto quick
068 other auto freeze dangerous stress