From a71e13bb81c7943d9524e26cbad9534519ca6e2e Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Mon, 12 Jun 2006 15:17:03 +0200 Subject: [PATCH] [PATCH] Pass full required size into create_file() --- fio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fio.c b/fio.c index 47e0298d..82f321bf 100644 --- a/fio.c +++ b/fio.c @@ -1184,7 +1184,7 @@ static int setup_file(struct thread_data *td) return 1; } else if (td->filetype == FIO_TYPE_FILE) { if (st.st_size < (off_t) td->file_size) { - if (create_file(td, td->file_size - st.st_size, 1)) + if (create_file(td, td->file_size, 1)) return 1; } } -- 2.25.1