X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=init.c;h=f5dff5059dabd76b6477a2a074de1ec42a79a3dc;hp=721978f6626674cdfbb685ff860576c1bb286af6;hb=062c6022d41233523669188e876e913abd6c4e2e;hpb=79e48f72dea1639bcbee310c354938287b6d5790 diff --git a/init.c b/init.c index 721978f6..f5dff505 100644 --- a/init.c +++ b/init.c @@ -17,7 +17,7 @@ #include "fio.h" #include "parse.h" -static char fio_version_string[] = "fio 1.17.3"; +static char fio_version_string[] = "fio 1.18.1"; #define FIO_RANDSEED (0xb1899bedUL) @@ -213,13 +213,6 @@ static int fixup_options(struct thread_data *td) o->write_iolog_file = NULL; } - if (td->io_ops->flags & FIO_SYNCIO) - o->iodepth = 1; - else { - if (!o->iodepth) - o->iodepth = o->open_files; - } - /* * only really works for sequential io for now, and with 1 file */ @@ -302,6 +295,10 @@ static int fixup_options(struct thread_data *td) if (o->fill_device && !o->size) o->size = ULONG_LONG_MAX; + + if (td_rw(td) && td->o.verify != VERIFY_NONE) + log_info("fio: mixed read/write workload with verify. May not " + "work as expected, unless you pre-populated the file\n"); return 0; } @@ -777,6 +774,7 @@ static void usage(const char *name) printf("\t--showcmd\tTurn a job file into command line options\n"); printf("\t--eta=when\tWhen ETA estimate should be printed\n"); printf("\t \tMay be \"always\", \"never\" or \"auto\"\n"); + printf("\t--readonly\tTurn on safety read-only checks, preventing writes\n"); } #ifdef FIO_INC_DEBUG