mirror of
https://github.com/aaru-dps/Aaru.Server.git
synced 2025-12-16 19:24:27 +00:00
Implement SCSI INQUIRY command response decoding (and added
adequate disk tag).
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user