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>
Reviewed-by: Eryu Guan <guaneryu@gmail.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
_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 "------------------------------"