From eec84c2805d792115e971bdb378b16c8e0b7026c Mon Sep 17 00:00:00 2001 From: Ronnie Sahlberg Date: Sat, 5 Oct 2013 17:06:21 -0700 Subject: [PATCH] Add PowerOnOccured as a sense code we allow and ignore during connect --- lib/connect.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/connect.c b/lib/connect.c index ec95cbb..271ce2b 100644 --- a/lib/connect.c +++ b/lib/connect.c @@ -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