[PATCH 4/5] btrfs/284: skip on zoned devices

Johannes Thumshirn <[email protected]> Mon, 20 Jul 2026 13:18:48 +0200
Newsgroups org.kernel.vger.fstests,org.kernel.vger.linux-btrfs
Message-ID <[email protected]>
Incremental send stream v2 uses fallocate(PUNCH_HOLE) to represent
holes, which btrfs receive replays. Zoned btrfs rejects all fallocate
modes, so receiving a stream with holes fails. Skip on zoned devices.

Signed-off-by: Johannes Thumshirn <[email protected]>
---
 tests/btrfs/284 | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tests/btrfs/284 b/tests/btrfs/284
index ec3bc2720935..fc34df88baa7 100755
--- a/tests/btrfs/284
+++ b/tests/btrfs/284
@@ -17,6 +17,7 @@ _require_test
 # least $LOAD_FACTOR * 1G, just to be on the safe side.
 _require_scratch_size $(($LOAD_FACTOR * 1 * 1024 * 1024))
 _require_fssum
+_require_non_zoned_device $SCRATCH_DEV
 
 _fixed_by_git_commit btrfs-progs e3209f8792f4 \
 	"btrfs-progs: receive: fix a corruption when decompressing zstd extents"
-- 
2.54.0