mirror of
https://github.com/aaru-dps/Aaru.Server.git
synced 2025-12-16 19:24:27 +00:00
* DiscImageChef.Devices/Device/ScsiCommands.cs:
Corrected typo. * DiscImageChef/Commands/DeviceInfo.cs: Decode SCSI sense.
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
2015-11-23 Natalia Portillo <claunia@claunia.com>
|
||||
|
||||
* Device/ScsiCommands.cs:
|
||||
Corrected typo.
|
||||
|
||||
2015-11-23 Natalia Portillo <claunia@claunia.com>
|
||||
|
||||
* Command.cs:
|
||||
|
||||
@@ -522,7 +522,7 @@ namespace DiscImageChef.Devices
|
||||
cdb[0] = (byte)ScsiCommands.ReadDiscStructure;
|
||||
cdb[1] = (byte)((byte)mediaType & 0x0F);
|
||||
cdb[2] = (byte)((address & 0xFF000000) >> 24);
|
||||
cdb[2] = (byte)((address & 0xFF0000) >> 16);
|
||||
cdb[3] = (byte)((address & 0xFF0000) >> 16);
|
||||
cdb[4] = (byte)((address & 0xFF00) >> 8);
|
||||
cdb[5] = (byte)(address & 0xFF);
|
||||
cdb[6] = layerNumber;
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
2015-11-23 Natalia Portillo <claunia@claunia.com>
|
||||
|
||||
* Commands/DeviceInfo.cs:
|
||||
Decode SCSI sense.
|
||||
|
||||
2015-11-23 Natalia Portillo <claunia@claunia.com>
|
||||
|
||||
* Commands/DeviceInfo.cs:
|
||||
|
||||
@@ -169,12 +169,7 @@ namespace DiscImageChef.Commands
|
||||
|
||||
if (sense)
|
||||
{
|
||||
DicConsole.ErrorWriteLine("SCSI error. Sense decoding not yet implemented.");
|
||||
|
||||
#if DEBUG
|
||||
FileStream senseFs = File.Open("sense.bin", FileMode.OpenOrCreate);
|
||||
senseFs.Write(senseBuf, 0, senseBuf.Length);
|
||||
#endif
|
||||
DicConsole.ErrorWriteLine("SCSI error:\n{0}", Decoders.SCSI.Sense.PrettifySense(senseBuf));
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user