A patch of HPTIOP driver for 7.1-RELEASE
Shaowei Wang (wsw)
wsw1wsw2 at gmail.com
Wed Jan 7 00:29:13 PST 2009
Hi, guys
hptiop driver in the 7.1 release has a little bug.
Because this issue the Raid-manage GUI program which we provided can NOT
work anymore.
So we give the patch:
Index: hptiop.h
===================================================================
--- hptiop.h (revision 186851)
+++ hptiop.h (working copy)
@@ -260,7 +260,7 @@
unsigned long lpOutBuffer; /* output data buffer */
u_int32_t nOutBufferSize; /* size of output data buffer
*/
unsigned long lpBytesReturned; /* count of HPT_U8s returned */
-};
+}__attribute__((packed));
#define HPT_IOCTL_FLAG_OPEN 1
#define HPT_CTL_CODE_BSD_TO_IOP(x) ((x)-0xff00)
====================================================================
-wsw
/************************************************************************/
大家好:
hptiop的驱动在7.1发行版中有个小错误。
这个小错误导致了我们提供的阵列管理程序无法运行。
我们给出了补丁:
Index: hptiop.h
===================================================================
--- hptiop.h (revision 186851)
+++ hptiop.h (working copy)
@@ -260,7 +260,7 @@
unsigned long lpOutBuffer; /* output data buffer */
u_int32_t nOutBufferSize; /* size of output data buffer
*/
unsigned long lpBytesReturned; /* count of HPT_U8s returned */
-};
+}__attribute__((packed));
#define HPT_IOCTL_FLAG_OPEN 1
#define HPT_CTL_CODE_BSD_TO_IOP(x) ((x)-0xff00)
====================================================================
-wsw
More information about the freebsd-hackers
mailing list