<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7234.20">
<TITLE>RE: Trouble installing OFED1.2 with kernel</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->
<P><FONT SIZE=2>I have downloaded the kernel src from<BR>
<A HREF="http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.18.8.tar.gz">http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.18.8.tar.gz</A><BR>
I have gunzip and untarred the directory.<BR>
<BR>
In the file linux-2.6.18.8/include/linux/fs.h. Here is the structure definition of inode. When I look below the i_private ptr does not exist. Please advise.<BR>
<BR>
Thanks,<BR>
Jeff<BR>
<BR>
<BR>
struct inode {<BR>
struct hlist_node i_hash;<BR>
struct list_head i_list;<BR>
struct list_head i_sb_list;<BR>
struct list_head i_dentry;<BR>
unsigned long i_ino;<BR>
atomic_t i_count;<BR>
umode_t i_mode;<BR>
unsigned int i_nlink;<BR>
uid_t i_uid;<BR>
gid_t i_gid;<BR>
dev_t i_rdev;<BR>
loff_t i_size;<BR>
struct timespec i_atime;<BR>
struct timespec i_mtime;<BR>
struct timespec i_ctime;<BR>
unsigned int i_blkbits;<BR>
unsigned long i_blksize;<BR>
unsigned long i_version;<BR>
blkcnt_t i_blocks;<BR>
unsigned short i_bytes;<BR>
spinlock_t i_lock; /* i_blocks, i_bytes, maybe i_size */<BR>
struct mutex i_mutex;<BR>
struct rw_semaphore i_alloc_sem;<BR>
struct inode_operations *i_op;<BR>
const struct file_operations *i_fop; /* former ->i_op->default_file_ops */<BR>
struct super_block *i_sb;<BR>
struct file_lock *i_flock;<BR>
struct address_space *i_mapping;<BR>
struct address_space i_data;<BR>
#ifdef CONFIG_QUOTA<BR>
struct dquot *i_dquot[MAXQUOTAS];<BR>
#endif<BR>
/* These three should probably be a union */<BR>
struct list_head i_devices;<BR>
struct pipe_inode_info *i_pipe;<BR>
struct block_device *i_bdev;<BR>
struct cdev *i_cdev;<BR>
int i_cindex;<BR>
<BR>
__u32 i_generation;<BR>
<BR>
#ifdef CONFIG_DNOTIFY<BR>
unsigned long i_dnotify_mask; /* Directory notify events */<BR>
struct dnotify_struct *i_dnotify; /* for directory notifications */<BR>
#endif<BR>
<BR>
#ifdef CONFIG_INOTIFY<BR>
struct list_head inotify_watches; /* watches on this inode */<BR>
struct mutex inotify_mutex; /* protects the watches list */<BR>
#endif<BR>
<BR>
unsigned long i_state;<BR>
unsigned long dirtied_when; /* jiffies of first dirtying */<BR>
<BR>
unsigned int i_flags;<BR>
<BR>
atomic_t i_writecount;<BR>
void *i_security;<BR>
union {<BR>
void *generic_ip;<BR>
} u;<BR>
#ifdef __NEED_I_SIZE_ORDERED<BR>
seqcount_t i_size_seqcount;<BR>
#endif<BR>
};<BR>
<BR>
<BR>
<BR>
<BR>
-----Original Message-----<BR>
From: Michael S. Tsirkin [<A HREF="mailto:mst@dev.mellanox.co.il">mailto:mst@dev.mellanox.co.il</A>]<BR>
Sent: Tue 5/1/2007 2:48 AM<BR>
To: Jeffrey Wong<BR>
Cc: Michael S. Tsirkin; general@lists.openfabrics.org<BR>
Subject: Re: Trouble installing OFED1.2 with kernel<BR>
<BR>
I don't think you are actually using the kernel from kernel.org:<BR>
we test-build these nightly.<BR>
<BR>
Quoting Jeffrey Wong <jwong@datallegro.com>:<BR>
Subject: RE: Trouble installing OFED1.2 with kernel<BR>
<BR>
Well when I try to compile I get an error message saying i_private is not a member of the inode structure when trying to compile the ulp/iboip and the ib_ipath modules. I'm using the 2.6.18-8 kernel src from kernel.org.<BR>
<BR>
Any reasons why I would be getting this error message?<BR>
<BR>
Thanks,<BR>
Jeff<BR>
<BR>
<BR>
-----Original Message-----<BR>
From: Michael S. Tsirkin [<A HREF="mailto:mst@dev.mellanox.co.il">mailto:mst@dev.mellanox.co.il</A>]<BR>
Sent: Tue 5/1/2007 12:03 AM<BR>
To: Jeffrey Wong<BR>
Cc: general@lists.openfabrics.org<BR>
Subject: Re: Trouble installing OFED1.2 with kernel<BR>
<BR>
> Quoting Jeffrey Wong <jwong@datallegro.com>:<BR>
> Subject: Re: Trouble installing OFED1.2 with kernel<BR>
><BR>
> Is there a workaround for the i_private member of the inode structure either in<BR>
> the kernel or in the OFED 1.2 software?<BR>
><BR>
> I want to be able to compile the ipoib drivers and I cannot with the error<BR>
> i_private not being a member of inode struct.<BR>
><BR>
> What does the ulp/ipoib do?<BR>
><BR>
> I want to be able to test out the ipverbs library and ipoib library to compare<BR>
> performance.<BR>
><BR>
> <BR>
><BR>
> Thanks.<BR>
><BR>
> <BR>
><BR>
> Jeff<BR>
<BR>
OFED 1.2 supports the RHEL5 kernel. Shouldn't the Centos kernel be identical?<BR>
<BR>
--<BR>
MST<BR>
<BR>
<BR>
<BR>
<BR>
--<BR>
MST<BR>
<BR>
</FONT>
</P>
</BODY>
</HTML>