X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=engines%2Fsg.c;h=8acbd50adbe0ccecb98c886ed718aa74941870a8;hb=0f38bbef532ef9da0d43382dca58a20e57c63dc1;hp=1a027daeb353fca972da13cf8796983024364463;hpb=3a35845f7756a8a86b420650bff41267192dce22;p=fio.git diff --git a/engines/sg.c b/engines/sg.c index 1a027dae..8acbd50a 100644 --- a/engines/sg.c +++ b/engines/sg.c @@ -62,7 +62,8 @@ static int pollin_events(struct pollfd *pfds, int fds) } static int fio_sgio_getevents(struct thread_data *td, unsigned int min, - unsigned int max, struct timespec fio_unused *t) + unsigned int max, + const struct timespec fio_unused *t) { struct sgio_data *sd = td->io_ops->data; int left = max, ret, r = 0; @@ -367,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; }