From: Shin'ichiro Kawasaki <shinichiro.kawasaki@xxxxxxx> The second argument of the function total_zone_capacity is expected to be in bytes. However, the call in test case #37 provides this argument in sectors and this results in a wrong capacity calculation. Make sure that the value that is passed to this function is converted to bytes. Signed-off-by: Shin'ichiro Kawasaki <shinichiro.kawasaki@xxxxxxx> Signed-off-by: Dmitry Fomichev <dmitry.fomichev@xxxxxxx> --- t/zbd/test-zbd-support | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/t/zbd/test-zbd-support b/t/zbd/test-zbd-support index 80763561..4d8e905d 100755 --- a/t/zbd/test-zbd-support +++ b/t/zbd/test-zbd-support @@ -828,7 +828,7 @@ test37() { local bs off size capacity prep_write - capacity=$(total_zone_capacity 1 $first_sequential_zone_sector $dev) + capacity=$(total_zone_capacity 1 $((first_sequential_zone_sector*512)) $dev) if [ "$first_sequential_zone_sector" = 0 ]; then off=0 else -- 2.28.0