mirror of
https://github.com/aaru-dps/Aaru.Server.git
synced 2025-12-16 19:24:27 +00:00
Added ATA/ATAPI IDENTIFY DEVICE disk tags.
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
2015-10-19 Natalia Portillo <claunia@claunia.com>
|
||||
|
||||
* Commands/Decode.cs:
|
||||
Added ATA/ATAPI IDENTIFY DEVICE disk tags.
|
||||
|
||||
2015-10-18 Natalia Portillo <claunia@claunia.com>
|
||||
|
||||
* Main.cs:
|
||||
|
||||
@@ -87,6 +87,34 @@ namespace DiscImageChef.Commands
|
||||
}
|
||||
break;
|
||||
}
|
||||
case DiskTagType.ATA_IDENTIFY:
|
||||
{
|
||||
byte[] identify = inputFormat.ReadDiskTag(DiskTagType.ATA_IDENTIFY);
|
||||
if (identify == null)
|
||||
DicConsole.WriteLine("Error reading ATA IDENTIFY DEVICE response from disc image");
|
||||
else
|
||||
{
|
||||
DicConsole.WriteLine("ATA IDENTIFY DEVICE command response:");
|
||||
DicConsole.WriteLine("================================================================================");
|
||||
DicConsole.WriteLine(Decoders.ATA.PrettifyIdentifyDevice(identify));
|
||||
DicConsole.WriteLine("================================================================================");
|
||||
}
|
||||
break;
|
||||
}
|
||||
case DiskTagType.ATAPI_IDENTIFY:
|
||||
{
|
||||
byte[] identify = inputFormat.ReadDiskTag(DiskTagType.ATAPI_IDENTIFY);
|
||||
if (identify == null)
|
||||
DicConsole.WriteLine("Error reading ATA IDENTIFY PACKET DEVICE response from disc image");
|
||||
else
|
||||
{
|
||||
DicConsole.WriteLine("ATA IDENTIFY PACKET DEVICE command response:");
|
||||
DicConsole.WriteLine("================================================================================");
|
||||
DicConsole.WriteLine(Decoders.ATA.PrettifyIdentifyDevice(identify));
|
||||
DicConsole.WriteLine("================================================================================");
|
||||
}
|
||||
break;
|
||||
}
|
||||
case DiskTagType.CD_ATIP:
|
||||
{
|
||||
byte[] atip = inputFormat.ReadDiskTag(DiskTagType.CD_ATIP);
|
||||
|
||||
Reference in New Issue
Block a user