FS/XFS testing framework
 help / color / mirror / Atom feed
* [PATCH] btrfs/295: skip on zoned device as we cannot corrupt it directly
@ 2023-09-26 14:11 Naohiro Aota
  2023-09-26 14:27 ` Anand Jain
  0 siblings, 1 reply; 2+ messages in thread
From: Naohiro Aota @ 2023-09-26 14:11 UTC (permalink / raw)
  To: fstests; +Cc: linux-btrfs, Naohiro Aota

We use _pwrite_byte to corrupt the root node, but such overwrite won't work
on a sequential write required zone. So, skip the test on a zoned device.

Technically, we can run this test case by checking if the physical location
lands in a conventional zone. But, the logic should be no difference than
the regular mode and I don't think it's worth doing so.

Signed-off-by: Naohiro Aota <naohiro.aota@wdc.com>
---
 tests/btrfs/295 | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tests/btrfs/295 b/tests/btrfs/295
index a9a8e5530a80..00a5c5680b86 100755
--- a/tests/btrfs/295
+++ b/tests/btrfs/295
@@ -12,6 +12,8 @@ _begin_fstest auto quick dangerous
 . ./common/filter
 _supported_fs btrfs
 _require_scratch
+# Directly writing to the device, which may not work with a zoned device
+_require_non_zoned_device "$SCRATCH_DEV"
 
 # Use single metadata profile so we only need to corrupt one copy of tree block
 _scratch_mkfs -m single > $seqres.full
-- 
2.42.0


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-09-26 14:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-09-26 14:11 [PATCH] btrfs/295: skip on zoned device as we cannot corrupt it directly Naohiro Aota
2023-09-26 14:27 ` Anand Jain

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox