Implement SCSI INQUIRY command response decoding (and added

adequate disk tag).
This commit is contained in:
2014-09-05 19:07:07 +01:00
parent 39afe44d16
commit 5cf5ca6325
4 changed files with 4601 additions and 1 deletions

View File

@@ -75,6 +75,20 @@ namespace DiscImageChef.Commands
{
switch (tag)
{
case DiskTagType.SCSI_INQUIRY:
{
byte[] inquiry = inputFormat.ReadDiskTag(DiskTagType.SCSI_INQUIRY);
if (inquiry == null)
Console.WriteLine("Error reading SCSI INQUIRY response from disc image");
else
{
Console.WriteLine("SCSI INQUIRY command response:");
Console.WriteLine("================================================================================");
Console.WriteLine(Decoders.SCSI.PrettifySCSIInquiry(inquiry));
Console.WriteLine("================================================================================");
}
break;
}
default:
Console.WriteLine("Decoder for disk tag type \"{0}\" not yet implemented, sorry.", tag);
break;