Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
to repeat the same workload a given number of times. Defaults
to 1.
to repeat the same workload a given number of times. Defaults
to 1.
+do_verify=int Run the verify phase after a write phase. Only makes sense if
+ verify is set. Defaults to 1.
+
verify=str If writing to a file, fio can verify the file contents
after each iteration of the job. The allowed values are:
verify=str If writing to a file, fio can verify the file contents
after each iteration of the job. The allowed values are:
* if writing, bytes_total will be twice the size. If mixing,
* assume a 50/50 split and thus bytes_total will be 50% larger.
*/
* if writing, bytes_total will be twice the size. If mixing,
* assume a 50/50 split and thus bytes_total will be 50% larger.
*/
+ if (td->o.do_verify && td->o.verify) {
if (td_rw(td))
bytes_total = bytes_total * 3 / 2;
else
if (td_rw(td))
bytes_total = bytes_total * 3 / 2;
else
if (td->error || td->terminate)
break;
if (td->error || td->terminate)
break;
- if (td->o.verify == VERIFY_NONE ||
+ if (!td->o.do_verify ||
+ td->o.verify == VERIFY_NONE ||
(td->io_ops->flags & FIO_UNIDIR))
continue;
(td->io_ops->flags & FIO_UNIDIR))
continue;
unsigned int end_fsync;
unsigned int sync_io;
unsigned int verify;
unsigned int end_fsync;
unsigned int sync_io;
unsigned int verify;
+ unsigned int do_verify;
unsigned int verifysort;
unsigned int verify_interval;
unsigned int verify_offset;
unsigned int verifysort;
unsigned int verify_interval;
unsigned int verify_offset;
+ {
+ .name = "do_verify",
+ .type = FIO_OPT_INT,
+ .off1 = td_var_offset(do_verify),
+ .help = "Run verification stage after write",
+ .def = "1",
+ },
{
.name = "verify",
.type = FIO_OPT_STR,
{
.name = "verify",
.type = FIO_OPT_STR,