From: Adam Kupczyk Date: Mon, 24 Sep 2018 11:29:39 +0000 (+0200) Subject: iolog: Fix problem with setup() not invoked when read_iolog is used. X-Git-Tag: fio-3.12~17^2 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=934c30857fd83863b67eb4191a043af9627b600d;p=fio.git iolog: Fix problem with setup() not invoked when read_iolog is used. Signed-off-by: Adam Kupczyk --- diff --git a/filesetup.c b/filesetup.c index 580403db..25dd907f 100644 --- a/filesetup.c +++ b/filesetup.c @@ -908,9 +908,6 @@ int setup_files(struct thread_data *td) old_state = td_bump_runstate(td, TD_SETTING_UP); - if (o->read_iolog_file) - goto done; - /* * Find out physical size of files or devices for this thread, * before we determine I/O size and range of our targets. @@ -926,6 +923,9 @@ int setup_files(struct thread_data *td) if (err) goto err_out; + if (o->read_iolog_file) + goto done; + /* * check sizes. if the files/devices do not exist and the size * isn't passed to fio, abort.