[ofa-general] RE: Trouble installing OFED1.2 with kernel
Jeffrey Wong
jwong at datallegro.com
Tue May 1 00:06:18 PDT 2007
I have downloaded the kernel src from
http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.18.8.tar.gz
I have gunzip and untarred the directory.
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.
Thanks,
Jeff
struct inode {
struct hlist_node i_hash;
struct list_head i_list;
struct list_head i_sb_list;
struct list_head i_dentry;
unsigned long i_ino;
atomic_t i_count;
umode_t i_mode;
unsigned int i_nlink;
uid_t i_uid;
gid_t i_gid;
dev_t i_rdev;
loff_t i_size;
struct timespec i_atime;
struct timespec i_mtime;
struct timespec i_ctime;
unsigned int i_blkbits;
unsigned long i_blksize;
unsigned long i_version;
blkcnt_t i_blocks;
unsigned short i_bytes;
spinlock_t i_lock; /* i_blocks, i_bytes, maybe i_size */
struct mutex i_mutex;
struct rw_semaphore i_alloc_sem;
struct inode_operations *i_op;
const struct file_operations *i_fop; /* former ->i_op->default_file_ops */
struct super_block *i_sb;
struct file_lock *i_flock;
struct address_space *i_mapping;
struct address_space i_data;
#ifdef CONFIG_QUOTA
struct dquot *i_dquot[MAXQUOTAS];
#endif
/* These three should probably be a union */
struct list_head i_devices;
struct pipe_inode_info *i_pipe;
struct block_device *i_bdev;
struct cdev *i_cdev;
int i_cindex;
__u32 i_generation;
#ifdef CONFIG_DNOTIFY
unsigned long i_dnotify_mask; /* Directory notify events */
struct dnotify_struct *i_dnotify; /* for directory notifications */
#endif
#ifdef CONFIG_INOTIFY
struct list_head inotify_watches; /* watches on this inode */
struct mutex inotify_mutex; /* protects the watches list */
#endif
unsigned long i_state;
unsigned long dirtied_when; /* jiffies of first dirtying */
unsigned int i_flags;
atomic_t i_writecount;
void *i_security;
union {
void *generic_ip;
} u;
#ifdef __NEED_I_SIZE_ORDERED
seqcount_t i_size_seqcount;
#endif
};
-----Original Message-----
From: Michael S. Tsirkin [mailto:mst at dev.mellanox.co.il]
Sent: Tue 5/1/2007 2:48 AM
To: Jeffrey Wong
Cc: Michael S. Tsirkin; general at lists.openfabrics.org
Subject: Re: Trouble installing OFED1.2 with kernel
I don't think you are actually using the kernel from kernel.org:
we test-build these nightly.
Quoting Jeffrey Wong <jwong at datallegro.com>:
Subject: RE: Trouble installing OFED1.2 with kernel
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.
Any reasons why I would be getting this error message?
Thanks,
Jeff
-----Original Message-----
From: Michael S. Tsirkin [mailto:mst at dev.mellanox.co.il]
Sent: Tue 5/1/2007 12:03 AM
To: Jeffrey Wong
Cc: general at lists.openfabrics.org
Subject: Re: Trouble installing OFED1.2 with kernel
> Quoting Jeffrey Wong <jwong at datallegro.com>:
> Subject: Re: Trouble installing OFED1.2 with kernel
>
> Is there a workaround for the i_private member of the inode structure either in
> the kernel or in the OFED 1.2 software?
>
> I want to be able to compile the ipoib drivers and I cannot with the error
> i_private not being a member of inode struct.
>
> What does the ulp/ipoib do?
>
> I want to be able to test out the ipverbs library and ipoib library to compare
> performance.
>
>
>
> Thanks.
>
>
>
> Jeff
OFED 1.2 supports the RHEL5 kernel. Shouldn't the Centos kernel be identical?
--
MST
--
MST
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openfabrics.org/pipermail/general/attachments/20070501/d1692963/attachment.html>
More information about the general
mailing list