Skip to contentSkip to conversation

btrfs/273: add missing _require_scratch check

PATCH Superseded Prabhakar Pujeri 2 participants 2 messages Sep 2 Btrfs file system

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 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.

---
 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
Reviewed-by on v1 1/1
#1 lore raw
Quoted 1 line · Prabhakar Pujeri

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.

Too long line, IIRC the regular commit message should not exceed 74 chars.

Quoted 2 lines

Otherwise looks good to me.

Thanks,
Qu

Quoted 16 lines
---
  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"