Tolerating all sense replies of form 6,28,*

このコミットが含まれているのは:
Thomas Schmitt 2020-09-30 20:53:53 +02:00
コミット 3468a2ad38
2個のファイルの変更10行の追加3行の削除

ファイルの表示

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

ファイルの表示

@ -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;