Author: gotar                        Date: Tue Jun 16 15:25:34 2009 GMT
Module: packages                      Tag: HEAD
---- Log message:
- one more patch against 2.6.23+
  http://www.geocities.com/linux_piewie/qpxtool-0.6.1-libata.txt

---- Files affected:
packages/qpxtool:
   qpxtool-0.6.1-libata.txt (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/qpxtool/qpxtool-0.6.1-libata.txt
diff -u /dev/null packages/qpxtool/qpxtool-0.6.1-libata.txt:1.1
--- /dev/null   Tue Jun 16 17:25:34 2009
+++ packages/qpxtool/qpxtool-0.6.1-libata.txt   Tue Jun 16 17:25:29 2009
@@ -0,0 +1,24 @@
+--- lib/qpxtransport/qpx_transport.cpp.orig    2008-02-03 00:56:14.000000000 
+0100
++++ lib/qpxtransport/qpx_transport.cpp 2008-02-03 01:14:09.000000000 +0100
+@@ -215,6 +215,21 @@
+ #define KERNEL_BROKEN 0
+       if (use_sg_io)
+       {
++              /* see linux-2.6.23/block/scsi_ioctl.c:36 */
++              static const unsigned char scsi_command_size[8] =
++              {
++                              6, 10, 10, 12,
++                              16, 12, 10, 10
++              };
++              char cmdsize, opcode;
++
++              opcode = cgc.cmd[0];
++              /* see linux-2.6.23/include/scsi/scsi.h:25 */
++              cmdsize = scsi_command_size[((opcode) >> 5) & 7];
++              if ((sg_io.cmd_len > 0) && (sg_io.cmd_len < cmdsize)) {
++                      sg_io.cmd_len = cmdsize;
++              }
++
+               sg_io.dxferp            = buf;
+               sg_io.dxfer_len         = sz;
+               sg_io.dxfer_direction   = use_sg_io[dir];
================================================================
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to