Allow IO logging even for diskless engines
authorJens Axboe <jens.axboe@oracle.com>
Tue, 21 Apr 2009 06:28:17 +0000 (08:28 +0200)
committerJens Axboe <jens.axboe@oracle.com>
Tue, 21 Apr 2009 06:28:17 +0000 (08:28 +0200)
Helps to verify IO patterns.

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
log.c

diff --git a/log.c b/log.c
index 6604c1c..6fe4961 100644 (file)
--- a/log.c
+++ b/log.c
@@ -406,6 +406,8 @@ static int init_iolog_write(struct thread_data *td)
                return 1;
        }
 
+       printf("log opened\n");
+
        /*
         * That's it for writing, setup a log buffer and we're done.
          */
@@ -434,9 +436,6 @@ int init_iolog(struct thread_data *td)
 {
        int ret = 0;
 
-       if (td->io_ops->flags & FIO_DISKLESSIO)
-               return 0;
-
        if (td->o.read_iolog_file) {
                /*
                 * Check if it's a blktrace file and load that if possible.