xfstests: test speculative preallocation reclaim on ENOSPC/EDQUOT

XFS can allocate significant amounts of space to files via speculative
preallocation. Such preallocation may not be reclaimed automatically on
file close() if a file is repeatedly opened and extended. For smaller
filesystems with relatively large and slow growing files, this
preallocation can linger for some time, including contributing to out of
space conditions.

Create a situation where an fs is near out of space while several files
still have lingering, significant preallocations. Verify that new
writers reclaim the preallocated space rather than return ENOSPC. Repeat
a similar test for quota limits and EDQUOT.

Signed-off-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
This commit is contained in:
Brian Foster
2014-06-18 09:33:26 +10:00
committed by Dave Chinner
parent f8c880df31
commit 34ff5cdfc4
3 changed files with 203 additions and 0 deletions
+1
View File
@@ -10,6 +10,7 @@
010 auto quick repair
012 rw auto quick
013 auto metadata stress
014 auto enospc quick quota
016 rw auto quick
017 mount auto quick stress
018 deprecated # log logprint v2log