patch-2.2.0-pre1 linux/drivers/scsi/scsi_error.c
Next file: linux/drivers/scsi/scsiiom.c
Previous file: linux/drivers/scsi/ppa.c
Back to the patch index
Back to the overall index
- Lines: 39
- Date:
Sun Dec 27 10:18:34 1998
- Orig file:
v2.1.132/linux/drivers/scsi/scsi_error.c
- Orig date:
Tue Dec 22 14:16:56 1998
diff -u --recursive --new-file v2.1.132/linux/drivers/scsi/scsi_error.c linux/drivers/scsi/scsi_error.c
@@ -1182,14 +1182,14 @@
}
if (SCpnt->sense_buffer[2] & 0xe0)
- return FAILED;
+ return SUCCESS;
switch (SCpnt->sense_buffer[2] & 0xf)
{
case NO_SENSE:
return SUCCESS;
case RECOVERED_ERROR:
- return SOFT_ERROR;
+ return /* SOFT_ERROR */ SUCCESS;
case ABORTED_COMMAND:
return NEEDS_RETRY;
@@ -1212,18 +1212,17 @@
case COPY_ABORTED:
case VOLUME_OVERFLOW:
case MISCOMPARE:
+ return SUCCESS;
case MEDIUM_ERROR:
- return FAILED;
+ return NEEDS_RETRY;
case ILLEGAL_REQUEST:
- return SUCCESS;
-
case BLANK_CHECK:
case DATA_PROTECT:
case HARDWARE_ERROR:
default:
- return FAILED;
+ return SUCCESS;
}
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov