Browse Source

Tolerating all sense replies of form 6,28,*

master
Thomas Schmitt 4 weeks ago
parent
commit
3468a2ad38
2 changed files with 10 additions and 3 deletions
  1. +1
    -1
      cdrskin/cdrskin_timestamp.h
  2. +9
    -2
      libburn/spc.c

+ 1
- 1
cdrskin/cdrskin_timestamp.h View File

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

+ 9
- 2
libburn/spc.c 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;


Loading…
Cancel
Save