X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;ds=sidebyside;f=init.c;h=66b7afe4a88a890092214231975bdd03b81b4332;hb=b271fe62101e84cd6ca2a78c92299beba251db24;hp=7fd38ad8e0c433491b9dcffb79376bc931f66471;hpb=bd6f78b2f0b6375383948f126368804612ec0035;p=fio.git diff --git a/init.c b/init.c index 7fd38ad8..66b7afe4 100644 --- a/init.c +++ b/init.c @@ -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 */ @@ -779,6 +772,7 @@ static void usage(const char *name) printf("\t \tMay be \"always\", \"never\" or \"auto\"\n"); } +#ifdef FIO_INC_DEBUG struct debug_level debug_levels[] = { { .name = "process", .shift = FD_PROCESS, }, { .name = "file", .shift = FD_FILE, }, @@ -828,6 +822,12 @@ static void set_debug(const char *string) log_err("fio: debug mask %s not found\n", opt); } } +#else +static void set_debug(const char *string) +{ + log_err("fio: debug tracing not included in build\n"); +} +#endif static int parse_cmd_line(int argc, char *argv[]) {