From 59997adae895f2aadaf33f0d5046c99656871099 Mon Sep 17 00:00:00 2001 From: Natalia Portillo Date: Fri, 5 Feb 2016 19:24:48 +0000 Subject: [PATCH] * TODO: * README.md: * DiscImageChef.Partitions/GPT.cs: * DiscImageChef.Partitions/DiscImageChef.Partitions.csproj: Added support for EFI GPT. Fixes #8. * commandline: * DiscImageChef.Decoders/SCSI/Sense.cs: Corrected handling when sense contains multiple repeated sense codes, in a not clean way (just ignoring repeats). * DiscImageChef.Filesystems/Acorn.cs: Added exception catching and unsigned values to correct Acorn DiscRecord structure. Fixes #34 * DiscImageChef/Commands/DeviceReport.cs: Check for 36 blocks in long block search in all cases. * DiscImageChef/Commands/DumpMedia.cs: Only try the persistent pass one time. If it didn't correct in the previous cycle it won't magically do now. Sort unreadalbe sectors before printing them. --- ChangeLog | 6 ++++++ SCSI/Sense.cs | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 432aee8f7..1b53dba54 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2016-02-05 Natalia Portillo + + * SCSI/Sense.cs: + Corrected handling when sense contains multiple repeated + sense codes, in a not clean way (just ignoring repeats). + 2016-02-04 Natalia Portillo * SCSI/Modes.cs: diff --git a/SCSI/Sense.cs b/SCSI/Sense.cs index 2be7c39e6..d824070c4 100644 --- a/SCSI/Sense.cs +++ b/SCSI/Sense.cs @@ -365,7 +365,8 @@ namespace DiscImageChef.Decoders.SCSI byte[] desc = new byte[descLen]; Array.Copy(sense, offset, desc, 0, descLen); - decoded.Descriptors.Add(descType, desc); + if(!decoded.Descriptors.ContainsKey(descType)) + decoded.Descriptors.Add(descType, desc); offset += descLen; }