mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Added ATA/ATAPI IDENTIFY DEVICE decoder
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
2015-10-17 Natalia Portillo <claunia@claunia.com>
|
||||
|
||||
* Commands/DeviceInfo.cs:
|
||||
Added ATA/ATAPI IDENTIFY DEVICE decoder
|
||||
|
||||
2015-10-17 Natalia Portillo <claunia@claunia.com>
|
||||
|
||||
* DiscImageChef.csproj:
|
||||
|
||||
@@ -90,8 +90,6 @@ namespace DiscImageChef.Commands
|
||||
byte[] ataBuf;
|
||||
sense = dev.AtaIdentify(out ataBuf, out errorRegisters);
|
||||
|
||||
FileStream fs;
|
||||
|
||||
if (sense)
|
||||
{
|
||||
|
||||
@@ -121,8 +119,8 @@ namespace DiscImageChef.Commands
|
||||
}
|
||||
else
|
||||
{
|
||||
fs = File.Open("atapi_identify.bin", FileMode.OpenOrCreate);
|
||||
fs.Write(ataBuf, 0, ataBuf.Length);
|
||||
Console.WriteLine("ATAPI OK");
|
||||
Console.WriteLine("{0}", Decoders.ATA.PrettifyIdentifyDevice(ataBuf));
|
||||
}
|
||||
}
|
||||
else
|
||||
@@ -145,9 +143,7 @@ namespace DiscImageChef.Commands
|
||||
else
|
||||
{
|
||||
Console.WriteLine("ATA OK");
|
||||
|
||||
fs = File.Open("ata_identify.bin", FileMode.OpenOrCreate);
|
||||
fs.Write(ataBuf, 0, ataBuf.Length);
|
||||
Console.WriteLine("{0}", Decoders.ATA.PrettifyIdentifyDevice(ataBuf));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user