Hi, While compiling kernel-2.6.16.21 patched with lustre-1.4.9 for SUSE10, I got following error: fs/open.c: In function ''do_truncate'': fs/open.c:219: error: ''ATTR_FROM_OPEN'' undeclared (first use in this function) fs/open.c:219: error: (Each undeclared identifier is reported only once fs/open.c:219: error: for each function it appears in.) fs/open.c:221: error: ''ATTR_RAW'' undeclared (first use in this function) fs/open.c: In function ''sys_utime'': fs/open.c:423: error: ''ATTR_RAW'' undeclared (first use in this function) fs/open.c: In function ''chmod_common'': fs/open.c:659: error: ''ATTR_RAW'' undeclared (first use in this function) fs/open.c: In function ''chown_common'': fs/open.c:737: error: ''ATTR_RAW'' undeclared (first use in this function) I found few ATTR_* variables defined in $KDIR\include/linux/fs.h but not ATTR_FROM_OPEN and ATTR_RAW. Please let me know if any additional information is required. -- Suneet Chandok Research Assistant Parallel Software Technologies Laboratory Department of Computer Science University of Houston Cell: 704-248-0718 Email: schandok@cs.uh.edu -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.clusterfs.com/pipermail/lustre-discuss/attachments/20070227/f2dc7593/attachment.html
Andreas Dilger
2007-Feb-27 15:47 UTC
[Lustre-discuss] ''ATTR_FROM_OPEN� undeclared - Error
On Feb 27, 2007 13:22 -0600, Suneet Chandok wrote:> While compiling kernel-2.6.16.21 patched with lustre-1.4.9 for SUSE10, I got > following error: > > fs/open.c: In function ''do_truncate'': > fs/open.c:219: error: ''ATTR_FROM_OPEN'' undeclared (first use in this > function) > fs/open.c:219: error: (Each undeclared identifier is reported only once > fs/open.c:219: error: for each function it appears in.) > fs/open.c:221: error: ''ATTR_RAW'' undeclared (first use in this function) > fs/open.c: In function ''sys_utime'': > fs/open.c:423: error: ''ATTR_RAW'' undeclared (first use in this function) > fs/open.c: In function ''chmod_common'': > fs/open.c:659: error: ''ATTR_RAW'' undeclared (first use in this function) > fs/open.c: In function ''chown_common'': > fs/open.c:737: error: ''ATTR_RAW'' undeclared (first use in this function) > > I found few ATTR_* variables defined in $KDIR\include/linux/fs.h but not > ATTR_FROM_OPEN and ATTR_RAW. > > Please let me know if any additional information is required.These are patched into fs.h via the lustre vfs_intent* patches. I suspect your patch didn''t apply properly. Note that the CFS patches are for SLES10 and not SUSE10. Cheers, Andreas -- Andreas Dilger Principal Software Engineer Cluster File Systems, Inc.