[PATCH] SG IO engine: remember to set io_u->file in init
authorJens Axboe <jens.axboe@oracle.com>
Thu, 8 Feb 2007 19:29:41 +0000 (20:29 +0100)
committerJens Axboe <jens.axboe@oracle.com>
Thu, 8 Feb 2007 19:29:41 +0000 (20:29 +0100)
It's now mandatory, since it supports multiple files now.

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

index 877264acd15b3316f4abd6b2c5002f09177f83df..6c997bd47cad75523582ea77bc7da454396c69f0 100644 (file)
@@ -285,6 +285,7 @@ static int fio_sgio_get_bs(struct thread_data *td, unsigned int *bs)
        int ret;
 
        io_u = __get_io_u(td);
        int ret;
 
        io_u = __get_io_u(td);
+       io_u->file = &td->files[0];
        assert(io_u);
 
        hdr = &io_u->hdr;
        assert(io_u);
 
        hdr = &io_u->hdr;