btrfs/273: add missing _require_scratch check
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.
Signed-off-by Prabhakar Pujeri <[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
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
Signed-off-by Prabhakar Pujeri <[email protected]>
Otherwise looks good to me.
Reviewed-by Qu Wenruo <[email protected]>
Thanks,
Qu
Quoted 16 lines
--- 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"