Skip to content

Commit

Permalink
t/zbd: add test case to confirm verify_backlog=1 options
Browse files Browse the repository at this point in the history
The previous commit fixed the verify failure due to the zone reset with
the verify_backlog option. Add a test to confirm the fix.

Signed-off-by: Shin'ichiro Kawasaki <shinichiro.kawasaki@wdc.com>
Link: https://lore.kernel.org/r/20240430103022.4136039-3-shinichiro.kawasaki@wdc.com
Signed-off-by: Vincent Fu <vincent.fu@samsung.com>
  • Loading branch information
kawasaki authored and vincentkfu committed Apr 30, 2024
1 parent 0c9c3a9 commit 06eb4c1
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions t/zbd/test-zbd-support
Original file line number Diff line number Diff line change
Expand Up @@ -1593,6 +1593,18 @@ test68() {
[[ $(grep -c "WRITE:" "${logfile}.${test_number}") == 1 ]]
}

# Test rw=rw and verify_backlog=1 options do not cause verify failure
test69() {
require_zbd || return "$SKIP_TESTCASE"

prep_write
run_fio --name=job --filename="$dev" --time_based --runtime=15s \
--rw=rw --offset=$((first_sequential_zone_sector * 512)) \
"$(ioengine "libaio")" --iodepth=32 --randrepeat=0 \
--verify=crc32 --verify_backlog=1 --zonemode=zbd --direct=1 \
>> "${logfile}.${test_number}" 2>&1 || return $?
}

SECONDS=0
tests=()
dynamic_analyzer=()
Expand Down

0 comments on commit 06eb4c1

Please sign in to comment.