commit | a71e13bb81c7943d9524e26cbad9534519ca6e2e | [log] [tgz] |
---|---|---|
author | Jens Axboe <axboe@suse.de> | Mon Jun 12 15:17:03 2006 +0200 |
committer | Jens Axboe <axboe@suse.de> | Mon Jun 12 15:17:03 2006 +0200 |
tree | 130278d172ca65a5f38a192440a60bb635f43028 | |
parent | c20d25b436e7934a622974de5b20bbd5de24e3f1 [diff] |
[PATCH] Pass full required size into create_file()
diff --git a/fio.c b/fio.c index 47e0298..82f321b 100644 --- a/fio.c +++ b/fio.c
@@ -1184,7 +1184,7 @@ 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; } }