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) 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: default:
Console.WriteLine("Decoder for disk tag type \"{0}\" not yet implemented, sorry.", tag); Console.WriteLine("Decoder for disk tag type \"{0}\" not yet implemented, sorry.", tag);
break; break;

File diff suppressed because it is too large Load Diff

View File

@@ -100,6 +100,7 @@
<Compile Include="Checksums\ReedSolomon.cs" /> <Compile Include="Checksums\ReedSolomon.cs" />
<Compile Include="Commands\PrintHex.cs" /> <Compile Include="Commands\PrintHex.cs" />
<Compile Include="Commands\Decode.cs" /> <Compile Include="Commands\Decode.cs" />
<Compile Include="Decoders\SCSI.cs" />
</ItemGroup> </ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" /> <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<ItemGroup> <ItemGroup>
@@ -108,6 +109,7 @@
<Folder Include="ImagePlugins\" /> <Folder Include="ImagePlugins\" />
<Folder Include="Commands\" /> <Folder Include="Commands\" />
<Folder Include="Checksums\" /> <Folder Include="Checksums\" />
<Folder Include="Decoders\" />
</ItemGroup> </ItemGroup>
<ProjectExtensions> <ProjectExtensions>
<MonoDevelop> <MonoDevelop>

View File

@@ -876,7 +876,9 @@ namespace DiscImageChef.ImagePlugins
/// <summary>DVD Copyright Management Information</summary> /// <summary>DVD Copyright Management Information</summary>
DVD_CMI, DVD_CMI,
/// <summary>DVD Disc Manufacturer Information</summary> /// <summary>DVD Disc Manufacturer Information</summary>
DVD_DMI DVD_DMI,
/// <summary>SCSI INQUIRY response</summary>
SCSI_INQUIRY
}; };
/// <summary> /// <summary>