mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +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;
|
||||
|
||||
4582
DiscImageChef/Decoders/SCSI.cs
Normal file
4582
DiscImageChef/Decoders/SCSI.cs
Normal file
File diff suppressed because it is too large
Load Diff
@@ -100,6 +100,7 @@
|
||||
<Compile Include="Checksums\ReedSolomon.cs" />
|
||||
<Compile Include="Commands\PrintHex.cs" />
|
||||
<Compile Include="Commands\Decode.cs" />
|
||||
<Compile Include="Decoders\SCSI.cs" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
|
||||
<ItemGroup>
|
||||
@@ -108,6 +109,7 @@
|
||||
<Folder Include="ImagePlugins\" />
|
||||
<Folder Include="Commands\" />
|
||||
<Folder Include="Checksums\" />
|
||||
<Folder Include="Decoders\" />
|
||||
</ItemGroup>
|
||||
<ProjectExtensions>
|
||||
<MonoDevelop>
|
||||
|
||||
@@ -876,7 +876,9 @@ namespace DiscImageChef.ImagePlugins
|
||||
/// <summary>DVD Copyright Management Information</summary>
|
||||
DVD_CMI,
|
||||
/// <summary>DVD Disc Manufacturer Information</summary>
|
||||
DVD_DMI
|
||||
DVD_DMI,
|
||||
/// <summary>SCSI INQUIRY response</summary>
|
||||
SCSI_INQUIRY
|
||||
};
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user