소스 검색

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;