projects
/
fio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
b94d4d7
)
Return non-negtive error in order to print right error msg
author
mychoxin
<mychoxin@gmail.com>
Wed, 19 Apr 2017 12:34:19 +0000
(20:34 +0800)
committer
mychoxin
<mychoxin@gmail.com>
Wed, 19 Apr 2017 12:34:19 +0000
(20:34 +0800)
Signed-off-by: Pan Liu <liupan1111@gmail.com>
engines/rbd.c
patch
|
blob
|
blame
|
history
diff --git
a/engines/rbd.c
b/engines/rbd.c
index 829e41a232250a96cb0aaed401a97b7516786061..743387925e699ff871758b91882b46421ad51a6f 100644
(file)
--- a/
engines/rbd.c
+++ b/
engines/rbd.c
@@
-290,7
+290,7
@@
static void _fio_rbd_finish_aiocb(rbd_completion_t comp, void *data)
*/
ret = rbd_aio_get_return_value(fri->completion);
if (ret < 0) {
- io_u->error = ret;
+ io_u->error =
-
ret;
io_u->resid = io_u->xfer_buflen;
} else
io_u->error = 0;
@@
-524,7
+524,7
@@
static int fio_rbd_queue(struct thread_data *td, struct io_u *io_u)
failed_comp:
rbd_aio_release(fri->completion);
failed:
- io_u->error = r;
+ io_u->error =
-
r;
td_verror(td, io_u->error, "xfer");
return FIO_Q_COMPLETED;
}