Dont fail the login just because a sanitize is in progress
This commit is contained in:
@@ -83,6 +83,13 @@ iscsi_testunitready_cb(struct iscsi_context *iscsi, int status,
|
|||||||
status = 0;
|
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->cb(iscsi, status?SCSI_STATUS_ERROR:SCSI_STATUS_GOOD, NULL,
|
||||||
ct->private_data);
|
ct->private_data);
|
||||||
scsi_free_scsi_task(task);
|
scsi_free_scsi_task(task);
|
||||||
|
|||||||
Reference in New Issue
Block a user