projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
engines/sg: Make I/O error messages more informative
[fio.git]
/
engines
/
sg.c
diff --git
a/engines/sg.c
b/engines/sg.c
index 72eed8b30741dcad3def977fbb929280f2debdfb..c2c0de39ef82903464f728f3e4ea489de993f538 100644
(file)
--- a/
engines/sg.c
+++ b/
engines/sg.c
@@
-287,11
+287,11
@@
static int fio_sgio_doio(struct thread_data *td, struct io_u *io_u, int do_sync)
if (f->filetype == FIO_TYPE_BLOCK) {
ret = fio_sgio_ioctl_doio(td, f, io_u);
if (f->filetype == FIO_TYPE_BLOCK) {
ret = fio_sgio_ioctl_doio(td, f, io_u);
- td
->error = io_u->error
;
+ td
_verror(td, io_u->error, __func__)
;
} else {
ret = fio_sgio_rw_doio(f, io_u, do_sync);
if (do_sync)
} else {
ret = fio_sgio_rw_doio(f, io_u, do_sync);
if (do_sync)
- td
->error = io_u->error
;
+ td
_verror(td, io_u->error, __func__)
;
}
return ret;
}
return ret;