Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
if (read_only && td_write(td)) {
log_err("fio: job <%s> has write bit set, but fio is in"
" read-only mode\n", td->o.name);
return 1;
}
if (read_only && td_write(td)) {
log_err("fio: job <%s> has write bit set, but fio is in"
" read-only mode\n", td->o.name);
return 1;
}
if (o->write_iolog_file && o->read_iolog_file) {
log_err("fio: read iolog overrides write_iolog\n");
if (o->write_iolog_file && o->read_iolog_file) {
log_err("fio: read iolog overrides write_iolog\n");
+static int rw_verify(struct fio_option *o, void *data)
+{
+ struct thread_data *td = data;
+
+ if (read_only && td_write(td)) {
+ log_err("fio: job <%s> has write bit set, but fio is in"
+ " read-only mode\n", td->o.name);
+ return 1;
+ }
+
+ return 0;
+}
+
#define __stringify_1(x) #x
#define __stringify(x) __stringify_1(x)
#define __stringify_1(x) #x
#define __stringify(x) __stringify_1(x)
.off1 = td_var_offset(td_ddir),
.help = "IO direction",
.def = "read",
.off1 = td_var_offset(td_ddir),
.help = "IO direction",
.def = "read",
.posval = {
{ .ival = "read",
.oval = TD_DDIR_READ,
.posval = {
{ .ival = "read",
.oval = TD_DDIR_READ,