Merge branch 'dev' of https://github.com/smartxworks/fio
authorJens Axboe <axboe@kernel.dk>
Fri, 12 Jul 2019 16:44:45 +0000 (10:44 -0600)
committerJens 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

index e4eb0bab9297f6977b9e7b14b823aef3859e643f..bea94c5a14a8dc2a02fba672de4e3b81b0de932d 100644 (file)
@@ -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;
        }