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

Johannes Thumshirn <[email protected]>
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 ec3bc272..fc34df88 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.55.0
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.