[LU-225] --with-ldiskfs-inkernel checks wrong file Created: 20/Apr/11  Updated: 24/May/11  Resolved: 24/May/11

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: Lustre 2.0.0, Lustre 2.1.0
Fix Version/s: Lustre 2.1.0

Type: Bug Priority: Minor
Reporter: Ned Bass Assignee: Lai Siyao
Resolution: Fixed Votes: 0
Labels: None

Severity: 3
Rank (Obsolete): 5042

 Description   

Commit fd0bd149e66cbc06a17c372e159f9bfba024cc97 changed which file is checked
to verify a correct ldiskfs installation when the --with-ldiskfs-inkernel
configure option is used:

diff --git a/build/autoconf/lustre-build.m4 b/build/autoconf/lustre-build.m4
index c70afbf..0d9d029 100644
--- a/build/autoconf/lustre-build.m4
+++ b/build/autoconf/lustre-build.m4
...
@@ -221,13 +301,13 @@ case x$with_ldiskfs in
                ;;
        xinkernel)
                AC_MSG_RESULT([inkernel])
-               LB_CHECK_FILE([$LINUX/include/linux/ldiskfs_fs.h],[],[
-                       AC_MSG_ERROR([ldiskfs was not found in $LINUX/include/linux/ldiskfs_fs.h])
+               LB_CHECK_FILE([$LINUX/fs/ldiskfs/inode.c],[],[
+                       AC_MSG_ERROR([ldiskfs was not found in $LINUX/fs/ldiskfs/inode.c])
                ])
                ;;
        *)
                AC_MSG_RESULT([$with_ldiskfs])
-               LB_CHECK_FILE([$with_ldiskfs/ldiskfs/linux/ldiskfs_fs.h],[],[
+               LB_CHECK_FILE([$with_ldiskfs/ldiskfs/inode.c],[],[
                        AC_MSG_ERROR([A complete (built) external ldiskfs was not found.])
                ])
                LDISKFS_DIR=$with_ldiskfs

It looks like the person fixing the *) case assumed the same fix applied to xinkernel).
However, this is wrong because the purpose of --with-ldiskfs-inkernel is to allow us to
build lustre without having full kernel sources available, so inode.c won't exist. I'll
push a fix to gerrit.



 Comments   
Comment by Ned Bass [ 20/Apr/11 ]

See http://review.whamcloud.com/446

Comment by Peter Jones [ 21/Apr/11 ]

Lai

Could you please look into this one

Thanks

Peter

Comment by Build Master (Inactive) [ 10/May/11 ]

Integrated in lustre-master » x86_64,client,el6,inkernel #114
LU-225 --with-ldiskfs-inkernel checks wrong file

Oleg Drokin : 7f29ac1fe12ec492e753187535c4d1f1b41c3d82
Files :

  • build/autoconf/lustre-build.m4
Comment by Build Master (Inactive) [ 10/May/11 ]

Integrated in lustre-master » x86_64,client,el5,inkernel #114
LU-225 --with-ldiskfs-inkernel checks wrong file

Oleg Drokin : 7f29ac1fe12ec492e753187535c4d1f1b41c3d82
Files :

  • build/autoconf/lustre-build.m4
Comment by Build Master (Inactive) [ 10/May/11 ]

Integrated in lustre-master » x86_64,client,ubuntu1004,inkernel #114
LU-225 --with-ldiskfs-inkernel checks wrong file

Oleg Drokin : 7f29ac1fe12ec492e753187535c4d1f1b41c3d82
Files :

  • build/autoconf/lustre-build.m4
Comment by Build Master (Inactive) [ 10/May/11 ]

Integrated in lustre-master » i686,client,el6,inkernel #114
LU-225 --with-ldiskfs-inkernel checks wrong file

Oleg Drokin : 7f29ac1fe12ec492e753187535c4d1f1b41c3d82
Files :

  • build/autoconf/lustre-build.m4
Comment by Build Master (Inactive) [ 10/May/11 ]

Integrated in lustre-master » x86_64,server,el5,inkernel #114
LU-225 --with-ldiskfs-inkernel checks wrong file

Oleg Drokin : 7f29ac1fe12ec492e753187535c4d1f1b41c3d82
Files :

  • build/autoconf/lustre-build.m4
Comment by Build Master (Inactive) [ 10/May/11 ]

Integrated in lustre-master » x86_64,client,el5,ofa #114
LU-225 --with-ldiskfs-inkernel checks wrong file

Oleg Drokin : 7f29ac1fe12ec492e753187535c4d1f1b41c3d82
Files :

  • build/autoconf/lustre-build.m4
Comment by Build Master (Inactive) [ 10/May/11 ]

Integrated in lustre-master » x86_64,server,el6,inkernel #114
LU-225 --with-ldiskfs-inkernel checks wrong file

Oleg Drokin : 7f29ac1fe12ec492e753187535c4d1f1b41c3d82
Files :

  • build/autoconf/lustre-build.m4
Comment by Build Master (Inactive) [ 10/May/11 ]

Integrated in lustre-master » x86_64,client,ubuntu1004,ofa #114
LU-225 --with-ldiskfs-inkernel checks wrong file

Oleg Drokin : 7f29ac1fe12ec492e753187535c4d1f1b41c3d82
Files :

  • build/autoconf/lustre-build.m4
Comment by Build Master (Inactive) [ 10/May/11 ]

Integrated in lustre-master » x86_64,server,el5,ofa #114
LU-225 --with-ldiskfs-inkernel checks wrong file

Oleg Drokin : 7f29ac1fe12ec492e753187535c4d1f1b41c3d82
Files :

  • build/autoconf/lustre-build.m4
Comment by Build Master (Inactive) [ 10/May/11 ]

Integrated in lustre-master » i686,server,el6,inkernel #114
LU-225 --with-ldiskfs-inkernel checks wrong file

Oleg Drokin : 7f29ac1fe12ec492e753187535c4d1f1b41c3d82
Files :

  • build/autoconf/lustre-build.m4
Comment by Build Master (Inactive) [ 10/May/11 ]

Integrated in lustre-master » i686,client,el5,inkernel #114
LU-225 --with-ldiskfs-inkernel checks wrong file

Oleg Drokin : 7f29ac1fe12ec492e753187535c4d1f1b41c3d82
Files :

  • build/autoconf/lustre-build.m4
Comment by Build Master (Inactive) [ 10/May/11 ]

Integrated in lustre-master » i686,client,el5,ofa #114
LU-225 --with-ldiskfs-inkernel checks wrong file

Oleg Drokin : 7f29ac1fe12ec492e753187535c4d1f1b41c3d82
Files :

  • build/autoconf/lustre-build.m4
Comment by Build Master (Inactive) [ 10/May/11 ]

Integrated in lustre-master » i686,server,el5,inkernel #114
LU-225 --with-ldiskfs-inkernel checks wrong file

Oleg Drokin : 7f29ac1fe12ec492e753187535c4d1f1b41c3d82
Files :

  • build/autoconf/lustre-build.m4
Comment by Build Master (Inactive) [ 10/May/11 ]

Integrated in lustre-master » i686,server,el5,ofa #114
LU-225 --with-ldiskfs-inkernel checks wrong file

Oleg Drokin : 7f29ac1fe12ec492e753187535c4d1f1b41c3d82
Files :

  • build/autoconf/lustre-build.m4
Comment by Peter Jones [ 16/May/11 ]

Is any further work needed on this issue or can this ticket be marked as RESOLVED?

Comment by Lai Siyao [ 16/May/11 ]

No, I think it can be marked RESOLVED.

Comment by Ned Bass [ 16/May/11 ]

This can be marked resolved.

Thanks,
Ned

Generated at Sat Feb 10 01:04:59 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.