Skip to contentSkip to conversation

btrfs/273: add missing _require_scratch check

PATCH In review Prabhakar Pujeri 2 participants 2 messages Sep 2 Btrfs file system

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 btrfs/273: add missing _require_scratch check

The test passes $SCRATCH_DEV to _require_zoned_device() and mkfs/mount without first requiring a scratch device, so it fails messily instead of skipping when no scratch device is configured.

---
Changes in v2:
- Wrap the commit message at 74 columns, per Qu Wenruo's review.
- Add Qu Wenruo's Reviewed-by; Cc him.

v1: https://lore.kernel.org/fstests/[email protected]/

 tests/btrfs/273 | 1 +
 1 file changed, 1 insertion(+)
tests/btrfs/273 +1 -0
index 60c3967b..197cfb02 100755
@@ -28,6 +28,7 @@ _fixed_by_kernel_commit 2ce543f47843 \
 # which is further fixed by
 _fixed_by_kernel_commit d5b81ced74af \
 	"btrfs: zoned: fix API misuse of zone finish waiting"
+_require_scratch
 _require_zoned_device "$SCRATCH_DEV"
 _require_limited_active_zones "$SCRATCH_DEV"
 
Signature · 1 line
2.55.0