瀏覽代碼

Fix Read Defect Data response

Information found from SCSI 2 Spec 9.2.8
The second byte of the Read Defect Data defect list should come from
the third byte of the Read Defect Data command. The defect list's second
byte, which is Reserved, Plist, Glist, Defect List Format was coming
from the second byte of the command, which is LUN, Reserved, and is
incorrect.

This is an attempt to address issue: https://github.com/ZuluSCSI/ZuluSCSI-firmware/issues/634
J. Morio Sakaguchi 3 月之前
父節點
當前提交
996ba91bc2
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/BlueSCSI_disk.cpp

+ 1 - 1
src/BlueSCSI_disk.cpp

@@ -2430,7 +2430,7 @@ int scsiDiskCommand()
             scsiDev.cdb[8];
 
         scsiDev.data[0] = 0;
-        scsiDev.data[1] = scsiDev.cdb[1];
+        scsiDev.data[1] = scsiDev.cdb[2];
         scsiDev.data[2] = 0;
         scsiDev.data[3] = 0;
         scsiDev.dataLen = 4;