Tolerating all sense replies of form 6,28,*

This commit is contained in:
Thomas Schmitt 2020-09-30 20:53:53 +02:00
parent 6b2ae7d141
commit 3468a2ad38
2 changed files with 10 additions and 3 deletions

View File

@ -1 +1 @@
#define Cdrskin_timestamP "2020.09.20.204320"
#define Cdrskin_timestamP "2020.09.30.185335"

View File

@ -195,8 +195,8 @@ int spc_wait_unit_attention(struct burn_drive *d, int max_sec, char *cmd_text,
*/
break;
}
if (key == 0x6 && asc == 0x28 && ascq == 0x00)
/* media change notice = try again */
if (key == 0x6 && asc == 0x28)
/* medium change notice or alike = try again */
goto slumber;
handle_error:;
@ -1446,8 +1446,15 @@ enum response scsi_error_msg(struct burn_drive *d, unsigned char *sense,
case 0x28:
if (*ascq == 0)
sprintf(msg, "Medium may have changed");
else if (*ascq == 1)
sprintf(msg, "Import or export element accessed");
else if (*ascq == 2)
sprintf(msg, "Format layer may have changed");
else if (*ascq == 3)
sprintf(msg,
"Import/export element accessed, medium changed");
else if (*key == 6)
sprintf(msg, "Unknown ASCQ with drive event ASC 28");
else
break;
goto return_retry;