summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Axboe <jaxboe@fusionio.com>2011-01-22 15:11:03 -0700
committerJens Axboe <jaxboe@fusionio.com>2011-01-22 15:11:03 -0700
commit7c973896f9e97f7b551bf4881fc0338b748f308b (patch)
treee93db7ee4324823522f4e3c1770ffa1cc843a8d9
parentb8d42b234f70ce2927e9ef1279aff42d62779cfd (diff)
downloadfio-7c973896f9e97f7b551bf4881fc0338b748f308b.tar.gz
fio-7c973896f9e97f7b551bf4881fc0338b748f308b.tar.bz2
Ensure that we exit with non-zero status on IO engine load failure
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
-rw-r--r--ioengines.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ioengines.c b/ioengines.c
index 6b677cb9..7f4e104e 100644
--- a/ioengines.c
+++ b/ioengines.c
@@ -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;