Let mmc_format_unit issue failure message on SCSI error

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

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))