btrfs/273: add missing _require_scratch check
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.
Reviewed-by Qu Wenruo <[email protected]>
Signed-off-by Prabhakar Pujeri <[email protected]>
---
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
@@ -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
Looks good,
Reviewed-by Johannes Thumshirn <[email protected]>