diff --git a/lib/connect.c b/lib/connect.c index 7429496..4f04636 100644 --- a/lib/connect.c +++ b/lib/connect.c @@ -77,6 +77,11 @@ iscsi_testunitready_cb(struct iscsi_context *iscsi, int status, status = 0; } + /* Dont fail the login just because the medium is reserved */ + if (status == SCSI_STATUS_RESERVATION_CONFLICT) { + status = 0; + } + ct->cb(iscsi, status?SCSI_STATUS_ERROR:SCSI_STATUS_GOOD, NULL, ct->private_data); scsi_free_scsi_task(task);