Revamp the file creation code
[fio.git] / fio.c
diff --git a/fio.c b/fio.c
index bed1e28770d1b2cb2a79edf0dccfd9bc796a28e4..2f0d74012a93a04f0ef464020bebe3f2e913b859 100644 (file)
--- a/fio.c
+++ b/fio.c
@@ -412,7 +412,7 @@ static void do_io(struct thread_data *td)
 
        td_set_runstate(td, TD_RUNNING);
 
-       while ((td->this_io_bytes[0] + td->this_io_bytes[1]) < td->io_size) {
+       while ((td->this_io_bytes[0] + td->this_io_bytes[1]) < td->o.size) {
                struct timeval comp_time;
                long bytes_done = 0;
                int min_evts = 0;