Let mmc_format_unit issue failure message on SCSI error

This commit is contained in:
Thomas Schmitt 2012-11-29 11:26:53 +00:00
parent 2df7f3d5d5
commit 1a74a05965
3 changed files with 7 additions and 2 deletions

View File

@ -1 +1 @@
#define Cdrskin_timestamP "2012.11.29.112506"
#define Cdrskin_timestamP "2012.11.29.112605"

View File

@ -475,7 +475,7 @@ Range "scdbackup" : 0x00020000 to 0x0002ffff
0x0002011f (SORRY,HIGH) = Burning is restricted to a single track
0x00020120 (NOTE,HIGH) = FORMAT UNIT ignored
0x00020121 (FATAL,HIGH) = Write preparation setup failed
0x00020122 (FATAL,HIGH) = SCSI error on format_unit
0x00020122 (FAILURE,HIGH) = SCSI error on format_unit
0x00020123 (SORRY,HIGH) = DVD Media are unsuitable for desired track type
0x00020124 (SORRY,HIGH) = SCSI error on set_streaming
0x00020125 (SORRY,HIGH) = Write start address not supported

View File

@ -3993,6 +3993,11 @@ unsuitable_media:;
sprintf(msg, "SCSI error on format_unit(%s): ", descr);
scsi_error_msg(d, c->sense, 14, msg + strlen(msg),
&key, &asc, &ascq);
libdax_msgs_submit(libdax_messenger, d->global_index,
0x00020122,
LIBDAX_MSGS_SEV_FAILURE, LIBDAX_MSGS_PRIO_HIGH,
msg, 0, 0);
}
{ret = 0; goto ex;}
} else if ((!c->error) && (format_type == 0x13 || format_type == 0x15))