[PATCH] Pass full required size into create_file()
authorJens Axboe <axboe@suse.de>
Mon, 12 Jun 2006 13:17:03 +0000 (15:17 +0200)
committerJens Axboe <axboe@suse.de>
Mon, 12 Jun 2006 13:17:03 +0000 (15:17 +0200)
fio.c

diff --git a/fio.c b/fio.c
index 47e0298d57c3a253a7118ce6f91a786cb6099135..82f321bfee82ccb9ff46f48f7bd0aeed07f217d2 100644 (file)
--- 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) {
                        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;
                }
        }
                                return 1;
                }
        }