diff mbox series

fstests: generic/274: require no compress

Message ID 4360f78499ffdb15a1dfff9b9647c144842995b3.1637680452.git.josef@toxicpanda.com (mailing list archive)
State New, archived
Headers show
Series fstests: generic/274: require no compress | expand

Commit Message

Josef Bacik Nov. 23, 2021, 3:14 p.m. UTC
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@toxicpanda.com>
---
 tests/generic/274 | 4 ++++
 1 file changed, 4 insertions(+)
diff mbox series

Patch

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 "------------------------------"