projects
/
fio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
01bf512
)
Merge branch 'dev' of https://github.com/smartxworks/fio
author
Jens Axboe
<axboe@kernel.dk>
Fri, 12 Jul 2019 16:44:45 +0000
(10:44 -0600)
committer
Jens Axboe
<axboe@kernel.dk>
Fri, 12 Jul 2019 16:44:45 +0000
(10:44 -0600)
* 'dev' of https://github.com/smartxworks/fio:
libiscsi: log reason of error when readcapacity failed
engines/libiscsi.c
patch
|
blob
|
blame
|
history
diff --git
a/engines/libiscsi.c
b/engines/libiscsi.c
index e4eb0bab9297f6977b9e7b14b823aef3859e643f..bea94c5a14a8dc2a02fba672de4e3b81b0de932d 100644
(file)
--- a/
engines/libiscsi.c
+++ b/
engines/libiscsi.c
@@
-117,7
+117,8
@@
static int fio_iscsi_setup_lun(struct iscsi_info *iscsi_info,
task = iscsi_readcapacity16_sync(iscsi_lun->iscsi, iscsi_lun->url->lun);
if (task == NULL || task->status != SCSI_STATUS_GOOD) {
- log_err("iscsi: failed to send readcapacity command\n");
+ log_err("iscsi: failed to send readcapacity command: %s\n",
+ iscsi_get_error(iscsi_lun->iscsi));
ret = EINVAL;
goto out;
}