X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=engines%2Fsg.c;h=8acbd50adbe0ccecb98c886ed718aa74941870a8;hb=0f38bbef532ef9da0d43382dca58a20e57c63dc1;hp=6272b79b568242239ae93cd028e919029b83c7b7;hpb=b220c6d6f37fc55760d66728f6f9f521ea2f9b46;p=fio.git 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; }