From 982016d689dc7fedbb09646ba0df7e72a781b164 Mon Sep 17 00:00:00 2001 From: "Zhang, Yanmin" Date: Tue, 26 Feb 2008 15:35:52 +0100 Subject: [PATCH] extend_file need continue when the file exists If some testing files exist and some others don't exist, fio will report failure on the no-exist file. Here is a patch to fix it. Signed-off-by: Jens Axboe --- filesetup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/filesetup.c b/filesetup.c index 785afcee..d10840a2 100644 --- a/filesetup.c +++ b/filesetup.c @@ -34,7 +34,7 @@ static int extend_file(struct thread_data *td, struct fio_file *f) unlink_file = 1; if (unlink_file || new_layout) { - if (unlink(f->file_name) < 0) { + if ((unlink(f->file_name) < 0) && (errno != ENOENT)) { td_verror(td, errno, "unlink"); return 1; } -- 2.25.1