Package: raidutils
Version: 0.0.4-5

On sarge, with an updated kernel from testing(2.6.12-1-686-smp), the
raidutils package is looking for the wrong device file /dev/i2o/ctl. The
device file /dev/i2octl exists but is not used by raideng.

I don't know if this is since I updated the kernel or not, but it seems that
this problem should exists in testing and unstable as well since it's the same
version of raidutils except for a few minor changes that shouldn't be related
to this.

The following patch solveed this issue and prevents my from having to
manually create the /dev/i2o/ctl device node.

--- raidutils-0.0.6.orig/raideng/osd_unix.cpp
+++ raidutils-0.0.6/raideng/osd_unix.cpp
@@ -1232,7 +1232,7 @@
 #elif defined (_DPT_SCO) || defined (SNI_MIPS) || defined(_DPT_SOLARIS) ||
defined(_DPT_BSDI) || defined(_DPT_FREE_BSD) || defined(_DPT_LINUX)

 #if defined(_DPT_LINUX_I2O)
-                    if(strcmp(HbaDevs[HbaNum].NodeName, "/dev/i2o/ctl"))
+                    if(strcmp(HbaDevs[HbaNum].NodeName, "/dev/i2octl"))
                         i = ioctl(FileID,I2OUSRCMD,IoctlBuffer_P);
                     else {
                         struct i2o_cmd_passthru pt;
@@ -2144,7 +2144,7 @@
                        i = 0;
                 }
 #elif defined(_DPT_LINUX_I2O)
-                if(strcmp(HbaDevs[Count].NodeName, "/dev/i2o/ctl"))
+                if(strcmp(HbaDevs[Count].NodeName, "/dev/i2octl"))
                    i =
osdSendIoctl(&HbaDevs[Count],DPT_CTRLINFO,DataBuff,&pkt);
                else {
                   /*
@@ -3745,13 +3745,13 @@
 #  if (defined(_DPT_LINUX_I2O))
    memset(&pkt, 0, sizeof(EATA_CP));
    HbaDevs[NumEntries].Flags = 0;
-   strcpy(HbaDevs[NumEntries].NodeName, "/dev/i2o/ctl");
+   strcpy(HbaDevs[NumEntries].NodeName, "/dev/i2octl");
    IoctlRtn = osdSendIoctl(&HbaDevs[NumEntries], I2OGETIOPS, (uCHAR
*)&NumEntries, &pkt);
    if(!IoctlRtn) {
      for(i = 0; i < NumEntries; i ++) {
        HbaDevs[i].Flags = NODE_FILE_VALID_HBA_B | NODE_FILE_I2O_HBA_B;
        HbaDevs[i].IoAddress = UINTPTR_MAX;
-       strcpy(HbaDevs[i].NodeName, "/dev/i2o/ctl");
+       strcpy(HbaDevs[i].NodeName, "/dev/i2octl");
      }
    }



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to