[PATCH 2/5] btrfs/199: skip on zoned devices
Johannes Thumshirn <[email protected]> Mon, 20 Jul 2026 13:18:46 +0200
| Newsgroups | org.kernel.vger.fstests,org.kernel.vger.linux-btrfs |
|---|---|
| Message-ID | <[email protected]> |
The test detects trimmed bytes via the used space of the loopback
backing file, which requires the backing filesystem to support hole
punching triggered by loop device discards. Zoned btrfs does not
support fallocate/punch hole, so discards to the loop device are
rejected ("operation not supported") and the test cannot measure
anything meaningful.
Skip the test when the scratch device is zoned.
Signed-off-by: Johannes Thumshirn <[email protected]>
---
tests/btrfs/199 | 1 +
1 file changed, 1 insertion(+)
diff --git a/tests/btrfs/199 b/tests/btrfs/199
index f161e55057ff..ec9f37830c2d 100755
--- a/tests/btrfs/199
+++ b/tests/btrfs/199
@@ -31,6 +31,7 @@ _fixed_by_kernel_commit 6b7faadd985c \
_require_loop
_require_xfs_io_command "fiemap"
+_require_non_zoned_device $SCRATCH_DEV
# We need less than 2G data write, consider it 2G and double it just in case
_require_scratch_size $((4 * 1024 * 1024))
--
2.54.0