From ad98f1f7b02a1f2c946b52fdf06ce4cfd798aa92 Mon Sep 17 00:00:00 2001 From: Changhui Zhong Date: Fri, 28 Nov 2025 18:14:41 +0800 Subject: [PATCH] scsi_debug only support maximum sector_size of 4096 bytes Signed-off-by: Changhui Zhong --- tests/throtl/rc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/throtl/rc b/tests/throtl/rc index d1afefd5..d11c3af7 100644 --- a/tests/throtl/rc +++ b/tests/throtl/rc @@ -76,6 +76,9 @@ _configure_throtl_blkdev() { ;; sdebug) args=(dev_size_mb=1024) + if ((sector_size > 4096)); then + sector_size=4096 + fi ((sector_size)) && args+=(sector_size="${sector_size}") if _configure_scsi_debug "${args[@]}"; then THROTL_DEV=${SCSI_DEBUG_DEVICES[0]}