Ensure that we exit with non-zero status on IO engine load failure
authorJens Axboe <jaxboe@fusionio.com>
Sat, 22 Jan 2011 22:11:03 +0000 (15:11 -0700)
committerJens Axboe <jaxboe@fusionio.com>
Sat, 22 Jan 2011 22:11:03 +0000 (15:11 -0700)
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
ioengines.c

index 6b677cb..7f4e104 100644 (file)
@@ -312,6 +312,8 @@ int td_io_init(struct thread_data *td)
                        log_err("fio: io engine init failed. Perhaps try"
                                " reducing io depth?\n");
                }
+               if (!td->error)
+                       td->error = ret;
        }
 
        return ret;