From: Jens Axboe Date: Wed, 11 Apr 2007 10:43:35 +0000 (+0200) Subject: Fix problem with treating ENOENT as an error X-Git-Tag: fio-1.15.2~5 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=40b44f4aac3fa9c00ef1573ad73bfc62f760cc2c;p=fio.git Fix problem with treating ENOENT as an error It's just a zero-sized file, as far as get_file_sizes() is concerned. Signed-off-by: Jens Axboe --- diff --git a/filesetup.c b/filesetup.c index c99d5b36..62d048ea 100644 --- a/filesetup.c +++ b/filesetup.c @@ -283,8 +283,10 @@ static int get_file_sizes(struct thread_data *td) for_each_file(td, f, i) { if (td->io_ops->open_file(td, f)) { - log_err("%s\n", td->verror); - err = 1; + if (td->error != ENOENT) { + log_err("%s\n", td->verror); + err = 1; + } clear_error(td); } else td->io_ops->close_file(td, f);