From: Shin'ichiro Kawasaki <shinichiro.kawasaki@wdc.com>
To: fio@vger.kernel.org, Jens Axboe <axboe@kernel.dk>,
Vincent Fu <vincentfu@gmail.com>
Cc: Damien Le Moal <dlemoal@kernel.org>,
Dmitry Fomichev <Dmitry.Fomichev@wdc.com>,
Shin'ichiro Kawasaki <shinichiro.kawasaki@wdc.com>
Subject: [PATCH 2/3] t/zbd: add test case to confirm verify_backlog=1 options
Date: Tue, 30 Apr 2024 19:30:21 +0900 [thread overview]
Message-ID: <20240430103022.4136039-3-shinichiro.kawasaki@wdc.com> (raw)
In-Reply-To: <20240430103022.4136039-1-shinichiro.kawasaki@wdc.com>
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>
---
t/zbd/test-zbd-support | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/t/zbd/test-zbd-support b/t/zbd/test-zbd-support
index c27d2ad6..ef98835c 100755
--- a/t/zbd/test-zbd-support
+++ b/t/zbd/test-zbd-support
@@ -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=()
--
2.44.0
next prev parent reply other threads:[~2024-04-30 10:30 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-04-30 10:30 [PATCH 0/3] zbd: fix two zonemode zbd problems Shin'ichiro Kawasaki
2024-04-30 10:30 ` [PATCH 1/3] zbd: remove unnecessary verify_backlog check in zbd_file_reset() Shin'ichiro Kawasaki
2024-04-30 10:30 ` Shin'ichiro Kawasaki [this message]
2024-04-30 10:30 ` [PATCH 3/3] t/zbd: avoid test case 31 failure with small devices Shin'ichiro Kawasaki
2024-04-30 17:35 ` [PATCH 0/3] zbd: fix two zonemode zbd problems Vincent Fu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240430103022.4136039-3-shinichiro.kawasaki@wdc.com \
--to=shinichiro.kawasaki@wdc.com \
--cc=Dmitry.Fomichev@wdc.com \
--cc=axboe@kernel.dk \
--cc=dlemoal@kernel.org \
--cc=fio@vger.kernel.org \
--cc=vincentfu@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).