We hit spurious errors with generic/274 with compression on because we attempt to fill up the disk with small writes, and these writes end up taking up metadata space instead of data space. Thus when we go to write into the preallocated area we get an ENOSPC, but from the metadata side and not the data side. Simply skip this test if we have compression enabled. Signed-off-by: Josef Bacik <josef@xxxxxxxxxxxxxx> --- tests/generic/274 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/generic/274 b/tests/generic/274 index 43fc2d3e..8c0e420e 100755 --- a/tests/generic/274 +++ b/tests/generic/274 @@ -30,6 +30,10 @@ _supported_fs generic _require_scratch _require_xfs_io_command "falloc" "-k" +# Compression can exhaust metadata space here for btrfs and cause spurious +# failurs because we hit a metadata ENOSPC, skip if we have compression enabled +_require_no_compress + echo "------------------------------" echo "preallocation test" echo "------------------------------" -- 2.26.3