From: Shin'ichiro Kawasaki Date: Wed, 27 Jan 2021 04:19:38 +0000 (+0900) Subject: t/zbd: fix wrong units in test case #37 X-Git-Tag: fio-3.26~21 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=cdf2f9e31efab8dc45215dd4e6ecb3de9149b4a9;p=fio.git t/zbd: fix wrong units in test case #37 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 Signed-off-by: Dmitry Fomichev Signed-off-by: Jens Axboe --- 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