[PATCH v2 7/8] t/zbd: avoid test case 33 failure with write_zone_remainder option
Shin'ichiro Kawasaki <[email protected]> Mon, 16 Feb 2026 16:59:35 +0900
| Newsgroups | org.kernel.vger.fio |
|---|---|
| Message-ID | <[email protected]> |
When -m option is provided for t/zbd/test-zbd-support, the option write_zone_remainder is specified to fio. In this case, the test case 33 fails because fio does writes to small remainder areas at zone ends and it changed the number of writes. To avoid the failure, modify the test condition of the test case. Signed-off-by: Shin'ichiro Kawasaki <[email protected]> --- t/zbd/test-zbd-support | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/t/zbd/test-zbd-support b/t/zbd/test-zbd-support index e5a5f75b..10fd6690 100755 --- a/t/zbd/test-zbd-support +++ b/t/zbd/test-zbd-support @@ -1002,10 +1002,13 @@ test33() { size=$((2 * zone_size)) io_size=$((5 * capacity)) bs=$((3 * capacity / 4)) + if ((!write_zone_remainder)); then + io_size=$((io_size / bs * bs)) + fi run_fio_on_seq "$(ioengine "psync")" --iodepth=1 --rw=write \ --size=$size --io_size=$io_size --bs=$bs \ >> "${logfile}.${test_number}" 2>&1 || return $? - check_written $((io_size / bs * bs)) || return $? + check_written $((io_size)) || return $? } # Test repeated async write job with verify using two unaligned block sizes. -- 2.49.0