This patch fixes the linux/include/cciss_ioctl.h file. When support for the cciss big ioctl was added the stucture in the header was put in the wrong place. If an application includes the file it will fail to compile.
Please consider this for inclusion in 2.6.6.
Thanks,
mikem
-------------------------------------------------------------------------------
diff -burpN lx266-rc2-p001/include/linux/cciss_ioctl.h lx266-rc2/include/linux/cciss_ioctl.h
--- lx266-rc2-p001/include/linux/cciss_ioctl.h 2004-04-03 21:36:57.000000000 -0600
+++ lx266-rc2/include/linux/cciss_ioctl.h 2004-04-27 13:58:51.000000000 -0500
@@ -35,17 +35,6 @@ typedef __u32 DriverVer_type;
#define MAX_KMALLOC_SIZE 128000
-typedef struct _BIG_IOCTL_Command_struct {
- LUNAddr_struct LUN_info;
- RequestBlock_struct Request;
- ErrorInfo_struct error_info;
- DWORD malloc_size; /* < MAX_KMALLOC_SIZE in cciss.c */
- DWORD buf_size; /* size in bytes of the buf */
- /* < malloc_size * MAXSGENTRIES */
- BYTE *buf;
-} BIG_IOCTL_Command_struct;
-
-
#ifndef CCISS_CMD_H
// This defines are duplicated in cciss_cmd.h in the driver directory
@@ -181,6 +170,16 @@ typedef struct _IOCTL_Command_struct {
BYTE *buf;
} IOCTL_Command_struct;
+typedef struct _BIG_IOCTL_Command_struct {
+ LUNAddr_struct LUN_info;
+ RequestBlock_struct Request;
+ ErrorInfo_struct error_info;
+ DWORD malloc_size; /* < MAX_KMALLOC_SIZE in cciss.c */
+ DWORD buf_size; /* size in bytes of the buf */
+ /* < malloc_size * MAXSGENTRIES */
+ BYTE *buf;
+} BIG_IOCTL_Command_struct;
+
typedef struct _LogvolInfo_struct{
__u32 LunID;
int num_opens; /* number of opens on the logical volume */