public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-x86 commit in app-cdr/qpxtool/files: qpxtool-0.6.1-libata.patch
@ 2008-02-19  2:59 Mike Frysinger (vapier)
  0 siblings, 0 replies; 2+ messages in thread
From: Mike Frysinger (vapier) @ 2008-02-19  2:59 UTC (permalink / raw
  To: gentoo-commits

vapier      08/02/19 02:59:55

  Added:                qpxtool-0.6.1-libata.patch
  Log:
  Fix from upstream for newer libata versions #210391 by Slava Gorbunov.
  (Portage version: 2.2_pre2)

Revision  Changes    Path
1.1                  app-cdr/qpxtool/files/qpxtool-0.6.1-libata.patch

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-cdr/qpxtool/files/qpxtool-0.6.1-libata.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-cdr/qpxtool/files/qpxtool-0.6.1-libata.patch?rev=1.1&content-type=text/plain

Index: qpxtool-0.6.1-libata.patch
===================================================================
http://bugs.gentoo.org/210392

--- lib/qpxtransport/qpx_transport.cpp
+++ lib/qpxtransport/qpx_transport.cpp
@@ -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];



-- 
gentoo-commits@lists.gentoo.org mailing list



^ permalink raw reply	[flat|nested] 2+ messages in thread

* [gentoo-commits] gentoo-x86 commit in app-cdr/qpxtool/files: qpxtool-0.6.1-libata.patch
@ 2009-12-26 22:57 Samuli Suominen (ssuominen)
  0 siblings, 0 replies; 2+ messages in thread
From: Samuli Suominen (ssuominen) @ 2009-12-26 22:57 UTC (permalink / raw
  To: gentoo-commits

ssuominen    09/12/26 22:57:07

  Removed:              qpxtool-0.6.1-libata.patch
  Log:
  old
  (Portage version: 2.2_rc61/cvs/Linux x86_64)



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-12-26 22:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-19  2:59 [gentoo-commits] gentoo-x86 commit in app-cdr/qpxtool/files: qpxtool-0.6.1-libata.patch Mike Frysinger (vapier)
  -- strict thread matches above, loose matches on Subject: below --
2009-12-26 22:57 Samuli Suominen (ssuominen)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox