Add PowerOnOccured as a sense code we allow and ignore during connect

This commit is contained in:
Ronnie Sahlberg
2013-10-05 17:06:21 -07:00
parent bca9e3d022
commit eec84c2805

View File

@@ -50,6 +50,7 @@ iscsi_testunitready_cb(struct iscsi_context *iscsi, int status,
if (status != 0) {
if (task->sense.key == SCSI_SENSE_UNIT_ATTENTION
&& (task->sense.ascq == SCSI_SENSE_ASCQ_BUS_RESET ||
task->sense.ascq == SCSI_SENSE_ASCQ_POWER_ON_OCCURED ||
task->sense.ascq == SCSI_SENSE_ASCQ_NEXUS_LOSS)) {
/* This is just the normal unitattention/busreset
* you always get just after a fresh login. Try