[PATCH 001/001] AACRAID: patch for AFA management libraries

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Patrick Boyd <Patrick_Boyd@xxxxxxxx>, Bill Edwards
<Bill_Edwards@xxxxxxxx>

The problem that we are having is that on the current version of RedHat
Enterprise Linux 5 (2.6.16 kernel) the Adaptec raid management libraries
(AFALIB) no longer function. We were able to root cause this to the fact
that the /proc/scsi/aacraid directory was missing. 

This directory is created if two properties are set in the
scsi_host_template structure: proc_name and proc_info. However, previous
driver version were not setting proc_info and as far as we can tell this
was just being set to uninitialized memory which was allowing the
directory creation to succeed. Apparently compiler or runtime behavior
has changed so that uninitialized entries in this static struct are set
to 0. Our solution is to simply create a function and put the function
pointer into the struct to restore the original behavior under the new
compiler.

Signed-off-by: Patrick Boyd <Patrick_Boyd@xxxxxxxx>, Bill Edwards
<Bill_Edwards@xxxxxxxx>

---

--- linux-2.6.16/drivers/scsi/aacraid/linit.c.orig	2006-08-30
11:53:58.000000000 -0500
+++ linux-2.6.16/drivers/scsi/aacraid/linit.c	2006-08-30
11:55:27.000000000 -0500
@@ -782,10 +782,18 @@ static struct file_operations aac_cfg_fo
 	.open		= aac_cfg_open,
 };
 
+static int aacraid_proc_info(struct Scsi_Host *host, char *buffer, char
**start, off_t offset,
+                                int length, int inout)
+{
+        return 0;
+}
+
+
 static struct scsi_host_template aac_driver_template = {
 	.module				= THIS_MODULE,
 	.name           		= "AAC",
 	.proc_name			= AAC_DRIVERNAME,
+	.proc_info			= aacraid_proc_info,
 	.info           		= aac_info,
 	.ioctl          		= aac_ioctl,
 #ifdef CONFIG_COMPAT
-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux