Description
Please acknowledge the following before creating a ticket
- I have read the GitHub issues section of REPORTING-BUGS.
Description of the bug:
The -verify_only flags allows a verify-only operation even if a write workload is specified. This is expected and described in the manual: "Do not perform specified workload, only verify data still matches previous invocation of this workload." However, after completing a -verify_only run, fio reports that it issued writes for the test, the number of which match the number of writes that would've been issued had fio actually wrote the data (it didn't).
Environment:
Ubuntu 22.04.1 LTS
fio version:
3.33-68
Reproduction steps
fio -bs=64K -rw=write -size=10M -filename=/tmp/test.bin -name="test" -verify=xxhash
then
fio -bs=64K -rw=write -size=10M -filename=/tmp/test.bin -name="test" -verify=xxhash -verify_only
Verify-only reports:
issued rwts: total=160,160,0,0 short=0,0,0,0 dropped=0,0,0,0
If I enable a log such as bandwidth then it too reports data points implying writes were issued even though they weren't. Here is a sample bandwidth log, run on an actual device and with -size=1GB so that the test runs long enough to yield log samples:
610, 1718977, 1, 0, 0
1250, 0, 1, 0, 0
1999, 0, 1, 0, 0
2612, 0, 1, 0, 0