Display more meaningful message on SCSI `unit attention'.

This commit is contained in:
mycroft 1993-04-20 10:51:51 +00:00
parent 530132e407
commit c2f7555fda
8 changed files with 8 additions and 8 deletions

View File

@ -1560,7 +1560,7 @@ struct scsi_xfer *xs;
unit);
return(EINVAL);
case 0x6:
if(!silent)printf("cd%d: Unit attention.\n", unit);
if(!silent)printf("cd%d: media change\n", unit);
if (cd_data[unit]->openparts)
cd_data[unit]->flags &= ~(CDVALID | CDHAVELABEL);
{

View File

@ -879,7 +879,7 @@ struct scsi_xfer *xs;
sense->ext.extended.info[13] ;
return(EINVAL);
case 0x6:
if(!silent) printf("st%d: Unit attention.\n ", unit);
if(!silent)printf("st%d: media change\n", unit);
ch_data[unit].lsterr=(sense->ext.extended.info[12]<<8)|
sense->ext.extended.info[13] ;
ch_info_valid[unit] = FALSE;

View File

@ -1178,7 +1178,7 @@ sd_interpret_sense(int unit, struct scsi_xfer *xs)
* sure that we don't have any residual state
*/
if(!silent)
printf("sd%d: Unit attention.\n ", unit);
printf("sd%d: reset\n", unit);
sd->flags &= ~(SDVALID | SDHAVELABEL);
if (sd->openparts)
return EIO;

View File

@ -1317,7 +1317,7 @@ st_interpret_sense(int unit, struct scsi_xfer *xs)
return EINVAL;
case 0x6:
if(!silent)
printf("st%d: Unit attention.\n", unit);
printf("st%d: media change\n", unit);
st->flags &= ~(ST_AT_FILEMARK|ST_AT_EOM);
st->info_valid = FALSE;
if (st->flags & ST_OPEN) /* TEMP!!!! */

View File

@ -1560,7 +1560,7 @@ struct scsi_xfer *xs;
unit);
return(EINVAL);
case 0x6:
if(!silent)printf("cd%d: Unit attention.\n", unit);
if(!silent)printf("cd%d: media change\n", unit);
if (cd_data[unit]->openparts)
cd_data[unit]->flags &= ~(CDVALID | CDHAVELABEL);
{

View File

@ -879,7 +879,7 @@ struct scsi_xfer *xs;
sense->ext.extended.info[13] ;
return(EINVAL);
case 0x6:
if(!silent) printf("st%d: Unit attention.\n ", unit);
if(!silent)printf("st%d: media change\n", unit);
ch_data[unit].lsterr=(sense->ext.extended.info[12]<<8)|
sense->ext.extended.info[13] ;
ch_info_valid[unit] = FALSE;

View File

@ -1178,7 +1178,7 @@ sd_interpret_sense(int unit, struct scsi_xfer *xs)
* sure that we don't have any residual state
*/
if(!silent)
printf("sd%d: Unit attention.\n ", unit);
printf("sd%d: reset\n", unit);
sd->flags &= ~(SDVALID | SDHAVELABEL);
if (sd->openparts)
return EIO;

View File

@ -1317,7 +1317,7 @@ st_interpret_sense(int unit, struct scsi_xfer *xs)
return EINVAL;
case 0x6:
if(!silent)
printf("st%d: Unit attention.\n", unit);
printf("st%d: media change\n", unit);
st->flags &= ~(ST_AT_FILEMARK|ST_AT_EOM);
st->info_valid = FALSE;
if (st->flags & ST_OPEN) /* TEMP!!!! */