GUASI API change
authorDavide Libenzi <davidel@xmailserver.org>
Tue, 10 Apr 2007 20:29:29 +0000 (22:29 +0200)
committerJens Axboe <jens.axboe@oracle.com>
Tue, 10 Apr 2007 20:29:29 +0000 (22:29 +0200)
There's been an API change in the latest GUASI library, and this fixes it
inside FIO.

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

index 1d3c77f6bce16752eb688928c523d64fcf23b1bb..1b717be87eda7184ee8828c8697c52d917ecd15e 100644 (file)
@@ -230,7 +230,7 @@ static int fio_guasi_init(struct thread_data *td)
        maxthr = td->o.iodepth > GFIO_MIN_THREADS ? td->o.iodepth: GFIO_MIN_THREADS;
        if (maxthr > GFIO_MAX_THREADS)
                maxthr = GFIO_MAX_THREADS;
        maxthr = td->o.iodepth > GFIO_MIN_THREADS ? td->o.iodepth: GFIO_MIN_THREADS;
        if (maxthr > GFIO_MAX_THREADS)
                maxthr = GFIO_MAX_THREADS;
-       if ((ld->hctx = guasi_create(GFIO_MIN_THREADS, maxthr, 1, 0)) == NULL) {
+       if ((ld->hctx = guasi_create(GFIO_MIN_THREADS, maxthr, 1)) == NULL) {
                td_verror(td, errno, "guasi_create");
                free(ld);
                return 1;
                td_verror(td, errno, "guasi_create");
                free(ld);
                return 1;