Only check FIO_DISKLESSIO in stat.c
authorJens Axboe <jens.axboe@oracle.com>
Thu, 1 Mar 2007 07:27:42 +0000 (08:27 +0100)
committerJens Axboe <jens.axboe@oracle.com>
Thu, 1 Mar 2007 07:27:42 +0000 (08:27 +0100)
Just make the null engine set that flag as well.

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
engines/null.c
stat.c

index 6bd51bab218d8179db7cce5fdd7945828fba7ef3..6db1ad6df82efe5e202592fe4fbbe5b6eb68295d 100644 (file)
@@ -22,7 +22,7 @@ static struct ioengine_ops ioengine = {
        .name           = "null",
        .version        = FIO_IOOPS_VERSION,
        .queue          = fio_null_queue,
        .name           = "null",
        .version        = FIO_IOOPS_VERSION,
        .queue          = fio_null_queue,
-       .flags          = FIO_SYNCIO | FIO_NULLIO,
+       .flags          = FIO_SYNCIO | FIO_NULLIO | FIO_DISKLESSIO,
 };
 
 static void fio_init fio_null_register(void)
 };
 
 static void fio_init fio_null_register(void)
diff --git a/stat.c b/stat.c
index ec418da9aa1ff6974fba0e68b08832cf18085aed..0ecc1648fd2178ae32e1526211f0bf2ea41fb6db 100644 (file)
--- a/stat.c
+++ b/stat.c
@@ -246,7 +246,7 @@ void init_disk_util(struct thread_data *td)
        dev_t dev;
        char *p;
 
        dev_t dev;
        char *p;
 
-       if (!td->do_disk_util || (td->io_ops->flags & (FIO_DISKLESSIO | FIO_NULLIO)))
+       if (!td->do_disk_util || (td->io_ops->flags & FIO_DISKLESSIO))
                return;
 
        /*
                return;
 
        /*