X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=init.c;h=84325f1e86fc800cdef58140d677004b4eacf9f1;hb=f0ed01ed095cf1ca7c1945a5a0267e8f73b7b4a9;hp=3710e3d404acf84599076098cbe6569282b448a8;hpb=87622bf5295880682bfad5ba14116cf5facbaf2c;p=fio.git diff --git a/init.c b/init.c index 3710e3d4..84325f1e 100644 --- a/init.c +++ b/init.c @@ -2068,6 +2068,18 @@ static int __parse_jobs_ini(struct thread_data *td, } ret = fio_options_parse(td, opts, num_opts); + + if (!ret) { + if (!strcmp(file, "-") && td->o.read_iolog_file != NULL) { + char *fname = get_name_by_idx(td->o.read_iolog_file, + td->subjob_number); + if (!strcmp(fname, "-")) { + log_err("fio: we can't read both iolog " + "and job file from stdin.\n"); + ret = 1; + } + } + } if (!ret) { if (dump_cmdline) dump_opt_list(td);