[PATCH] Misc minor fixes
authorJens Axboe <axboe@suse.de>
Mon, 12 Dec 2005 15:29:20 +0000 (16:29 +0100)
committerJens Axboe <axboe@suse.de>
Mon, 12 Dec 2005 15:29:20 +0000 (16:29 +0100)
- examples/aio-read needs size=
- check ->zone_skip before doing division, ->zone_size is always set.

examples/aio-read
fio.c

index 832e006..ed8cb2c 100644 (file)
@@ -3,6 +3,7 @@
 ioengine=libaio
 rw=randread
 bs=128k
+size=512m
 
 [/data1/file1]
 iodepth=4
diff --git a/fio.c b/fio.c
index 5dbe9c3..493aa64 100644 (file)
--- a/fio.c
+++ b/fio.c
@@ -1933,7 +1933,7 @@ static void print_thread_status(void)
                if (td->verify)
                        bytes_total += td->total_io_size;
 
-               if (td->zone_size)
+               if (td->zone_size && td->zone_skip)
                        bytes_total /= (td->zone_skip / td->zone_size);
        
                bytes_done += td->io_bytes[DDIR_READ] +td->io_bytes[DDIR_WRITE];