From c7a2a3cfe67f066e234ddc78bf799ed188ce342d Mon Sep 17 00:00:00 2001 From: Natalia Portillo Date: Thu, 30 Jan 2020 21:49:25 +0000 Subject: [PATCH] Encode Hi-MD specific data from SCSI INQUIRY. --- Structs/Devices/SCSI/Inquiry.cs | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/Structs/Devices/SCSI/Inquiry.cs b/Structs/Devices/SCSI/Inquiry.cs index d205708a3..d359691e2 100644 --- a/Structs/Devices/SCSI/Inquiry.cs +++ b/Structs/Devices/SCSI/Inquiry.cs @@ -663,7 +663,17 @@ namespace DiscImageChef.CommonTypes.Structs.Devices.SCSI Array.Copy(decoded.HP_OBDR, 0, buffer, 43, 6); } - if(decoded.VendorSpecific != null) + if(decoded.IsHiMD) + { + length = 56; + Array.Copy(HiMDSignatureContents, 0, buffer, 36, 8); + + if(decoded.HiMDSpecific != null) + Array.Copy(decoded.HiMDSpecific, 0, buffer, 44, 12); + } + + if(decoded.VendorSpecific != null && + !decoded.IsHiMD) { length = 56; Array.Copy(decoded.VendorSpecific, 0, buffer, 36, 20);