projects
/
fio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5a13bb8
)
engines/http: use proper error value
author
Jens Axboe
<axboe@kernel.dk>
Fri, 15 Dec 2023 20:17:13 +0000
(13:17 -0700)
committer
Jens Axboe
<axboe@kernel.dk>
Fri, 15 Dec 2023 20:17:13 +0000
(13:17 -0700)
The engine sets -1 for some odd reason, where ->error fields are
supposed to be a positive value. Set it to EIO.
Signed-off-by: Jens Axboe <axboe@kernel.dk>
engines/http.c
patch
|
blob
|
blame
|
history
diff --git
a/engines/http.c
b/engines/http.c
index 001479b055d5c82556c1f6348faa6bb842a7e40c..99f4e119a4f5f0fcd5d59134ae07e0923c9559af 100644
(file)
--- a/
engines/http.c
+++ b/
engines/http.c
@@
-711,7
+711,7
@@
static enum fio_q_status fio_http_queue(struct thread_data *td,
log_err("WARNING: Only DDIR_READ/DDIR_WRITE/DDIR_TRIM are supported!\n");
err:
- io_u->error =
-1
;
+ io_u->error =
EIO
;
td_verror(td, io_u->error, "transfer");
out:
curl_slist_free_all(slist);