[Lustre-discuss] 1.8.1.1
Andreas Dilger
adilger at sun.com
Sat Dec 5 16:47:58 PST 2009
On 2009-12-05, at 10:28, Papp Tamás wrote:
> Johann Lombardi wrote, On 2009. 12. 02. 0:18:
>> Actually, this is bug 19557 and a patch is pending review.
>> I would be delighted if you could give the patch a try.
>
> How can I rebuild only lustre modules?
>
> I checked out the b1_8 source tree and applied the patched from
> bugzilla.
>
> Then I tried this:
>
> ./configure
> --with-linux=/usr/src/kernels/2.6.18-128.7.1.el5_lustre.1.8.1.1-
> x86_64/
This should be the right kernel for b1_8, according to lustre/ChangeLog
> make says:
>
> mkdir -p linux-stage/fs/ext3 linux-stage/include/linux
> cp
> /usr/src/kernels/2.6.18-128.7.1.el5_lustre.1.8.1.1-x86_64//fs/ext3/
> acl.c
> /usr/src/kernels/2.6.18-128.7.1.el5_lustre.1.8.1.1-x86_64//fs/ext3/
> balloc.c
> /usr/src/kernels/2.6.18-128.7.1.el5_lustre.1.8.1.1-x86_64//fs/ext3/
> bitmap.c
> /usr/src/kernels/2.6.18-128.7.1.el5_lustre.1.8.1.1-x86_64//fs/ext3/
> dir.c
> /usr/src/kernels/2.6.18-128.7.1.el5_lustre.1.8.1.1-x86_64//fs/ext3/
> file.c
> /usr/src/kernels/2.6.18-128.7.1.el5_lustre.1.8.1.1-x86_64//fs/ext3/
> fsync.c
> /usr/src/kernels/2.6.18-128.7.1.el5_lustre.1.8.1.1-x86_64//fs/ext3/
> hash.c
> /usr/src/kernels/2.6.18-128.7.1.el5_lustre.1.8.1.1-x86_64//fs/ext3/
> ialloc.c
> /usr/src/kernels/2.6.18-128.7.1.el5_lustre.1.8.1.1-x86_64//fs/ext3/
> inode.c
> /usr/src/kernels/2.6.18-128.7.1.el5_lustre.1.8.1.1-x86_64//fs/ext3/
> ioctl.c
> /usr/src/kernels/2.6.18-128.7.1.el5_lustre.1.8.1.1-x86_64//fs/ext3/
> namei.c
> /usr/src/kernels/2.6.18-128.7.1.el5_lustre.1.8.1.1-x86_64//fs/ext3/
> resize.c
> /usr/src/kernels/2.6.18-128.7.1.el5_lustre.1.8.1.1-x86_64//fs/ext3/
> super.c
> /usr/src/kernels/2.6.18-128.7.1.el5_lustre.1.8.1.1-x86_64//fs/ext3/
> symlink.c
> /usr/src/kernels/2.6.18-128.7.1.el5_lustre.1.8.1.1-x86_64//fs/ext3/
> xattr.c
> /usr/src/kernels/2.6.18-128.7.1.el5_lustre.1.8.1.1-x86_64//fs/ext3/
> xattr_security.c
> /usr/src/kernels/2.6.18-128.7.1.el5_lustre.1.8.1.1-x86_64//fs/ext3/
> xattr_trusted.c
> /usr/src/kernels/2.6.18-128.7.1.el5_lustre.1.8.1.1-x86_64//fs/ext3/
> xattr_user.c
> /usr/src/kernels/2.6.18-128.7.1.el5_lustre.1.8.1.1-x86_64//fs/ext3/
> acl.h
> /usr/src/kernels/2.6.18-128.7.1.el5_lustre.1.8.1.1-x86_64//fs/ext3/
> namei.h
> /usr/src/kernels/2.6.18-128.7.1.el5_lustre.1.8.1.1-x86_64//fs/ext3/
> xattr.h
> /usr/src/kernels/2.6.18-128.7.1.el5_lustre.1.8.1.1-x86_64//fs/ext3/
> Makefile
> linux-stage/fs/ext3
> if test -n
> "/usr/src/kernels/2.6.18-128.7.1.el5_lustre.1.8.1.1-x86_64//include/
> linux/ext3_fs.h
> /usr/src/kernels/2.6.18-128.7.1.el5_lustre.1.8.1.1-x86_64//include/
> linux/ext3_fs_i.h
> /usr/src/kernels/2.6.18-128.7.1.el5_lustre.1.8.1.1-x86_64//include/
> linux/ext3_fs_sb.h
> /usr/src/kernels/2.6.18-128.7.1.el5_lustre.1.8.1.1-x86_64//include/
> linux/ext3_jbd.h"
> ; then \
> cp
> /usr/src/kernels/2.6.18-128.7.1.el5_lustre.1.8.1.1-x86_64//include/
> linux/ext3_fs.h
> /usr/src/kernels/2.6.18-128.7.1.el5_lustre.1.8.1.1-x86_64//include/
> linux/ext3_fs_i.h
> /usr/src/kernels/2.6.18-128.7.1.el5_lustre.1.8.1.1-x86_64//include/
> linux/ext3_fs_sb.h
> /usr/src/kernels/2.6.18-128.7.1.el5_lustre.1.8.1.1-x86_64//include/
> linux/ext3_jbd.h
> linux-stage/include/linux; \
> fi
> Applying ext3 patches:
> ext3-version-2.6-rhel5.patch
> ext3-wantedi-2.6-rhel4.patch
> iopen-2.6.18-rhel5.patch
> ext3-map_inode_page-2.6.18.patch
> export-ext3-2.6-rhel4.patch
> ext3-include-fixes-2.6-rhel4.patch
> ext3-extents-2.6.18-vanilla.patch
> 1 out of 5 hunks FAILED -- saving rejects to include/linux/
> ext3_fs.h.rej
>
> Why does it want to patch the kernel again?
This is trying to build the ldiskfs module from the ext3 sources. It
_should_ work, given that you have the right kernel sources, but
clearly either the patch was changed, or something is different
between your ext3 and what the patch expects. This is normally just a
simple context error.
To fix this:
cd ldiskfs/ldiskfs/linux-stage
quilt push -f
{apply include/linux/ext3_fs.h.rej to ext3_fs.h by hand}
quilt refresh
cd -
then "make" should work again.
Cheers, Andreas
--
Andreas Dilger
Sr. Staff Engineer, Lustre Group
Sun Microsystems of Canada, Inc.
More information about the lustre-discuss
mailing list