From 6ab9e267d0a48de95c86875ba93fe17203163bb0 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Thu, 8 Feb 2007 20:29:41 +0100 Subject: [PATCH 1/1] [PATCH] SG IO engine: remember to set io_u->file in init It's now mandatory, since it supports multiple files now. Signed-off-by: Jens Axboe --- engines/sg.c | 1 + 1 file changed, 1 insertion(+) diff --git a/engines/sg.c b/engines/sg.c index 877264ac..6c997bd4 100644 --- a/engines/sg.c +++ b/engines/sg.c @@ -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); + io_u->file = &td->files[0]; assert(io_u); hdr = &io_u->hdr; -- 2.25.1