From: Jens Axboe Date: Fri, 6 Oct 2017 17:41:47 +0000 (-0600) Subject: backend: don't complain about no IO done for create_only=1 X-Git-Tag: fio-3.2~63 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=f7c9bfd57232c6e11623d741be340d32f796c726 backend: don't complain about no IO done for create_only=1 It's expected that we didn't actually run any IO, if the user asked for just file creation. Fixes: 48366f3a92cb ("Don't silently terminate td when no I/O performed due to error") Signed-off-by: Jens Axboe --- diff --git a/backend.c b/backend.c index b1995ef4..ba6f5854 100644 --- a/backend.c +++ b/backend.c @@ -1833,7 +1833,7 @@ static void *thread_main(void *data) * (Are we not missing other flags that can be ignored ?) */ if ((td->o.size || td->o.io_size) && !ddir_rw_sum(bytes_done) && - !did_some_io && + !did_some_io && !td->o.create_only && !(td_ioengine_flagged(td, FIO_NOIO) || td_ioengine_flagged(td, FIO_DISKLESSIO))) log_err("%s: No I/O performed by %s, "