Dont fail the login just because a sanitize is in progress

This commit is contained in:
Ronnie Sahlberg
2013-07-21 14:04:41 -07:00
parent 804c5b0211
commit 49698e0322

View File

@@ -83,6 +83,13 @@ iscsi_testunitready_cb(struct iscsi_context *iscsi, int status,
status = 0;
}
/* Dont fail the login just because there is a sanitize in progress */
if (status != 0
&& task->sense.key == SCSI_SENSE_NOT_READY
&& task->sense.ascq == SCSI_SENSE_ASCQ_SANITIZE_IN_PROGRESS) {
status = 0;
}
ct->cb(iscsi, status?SCSI_STATUS_ERROR:SCSI_STATUS_GOOD, NULL,
ct->private_data);
scsi_free_scsi_task(task);