Răsfoiți Sursa

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 luni în urmă
părinte
comite
996ba91bc2
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  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;