test: add test for readwrite issue
authorChana-Zaks-wdc <chana.zaks@wdc.com>
Thu, 18 Apr 2024 09:22:23 +0000 (12:22 +0300)
committerJens Axboe <axboe@kernel.dk>
Thu, 18 Apr 2024 15:28:48 +0000 (09:28 -0600)
test the previous commit: Don’t break too early in readwrite mode

In rw mode if io_size > size An early reset of the addresses occurred.
Make sure all addresses are done correctly.

Signed-off-by: Chana-Zaks-wdc <chana.zaks@wdc.com>
Link: https://lore.kernel.org/r/20240418092222.20543-3-chana.zaks@wdc.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
t/jobs/t0032-43063a1c.fio [new file with mode: 0644]

diff --git a/t/jobs/t0032-43063a1c.fio b/t/jobs/t0032-43063a1c.fio
new file mode 100644 (file)
index 0000000..db998e5
--- /dev/null
@@ -0,0 +1,12 @@
+# Expected results: max offset is ~1280K
+# Buggy result: max offset is ~640K
+#
+
+[global]
+ioengine=null
+size=1280K
+io_size=2560k
+bs=128K
+
+[test1]
+rw=rw