From 40b44f4aac3fa9c00ef1573ad73bfc62f760cc2c Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Wed, 11 Apr 2007 12:43:35 +0200 Subject: [PATCH 1/1] 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 --- filesetup.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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); -- 2.25.1