From 16ada7542f32b38c1189390a97b595948079b100 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Tue, 31 Mar 2015 13:40:25 -0600 Subject: [PATCH] sg: don't return success if non bdev/char is used 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 6272b79b..8acbd50a 100644 --- a/engines/sg.c +++ b/engines/sg.c @@ -368,6 +368,7 @@ static int fio_sgio_type_check(struct thread_data *td, struct fio_file *f) if (ret) return 1; } else { + td_verror(td, EINVAL, "wrong file type"); log_err("ioengine sg only works on block devices\n"); return 1; } -- 2.25.1