Whamcloud - gitweb
LU-225 --with-ldiskfs-inkernel checks wrong file
authorNed A. Bass <bass6@llnl.gov>
Wed, 20 Apr 2011 21:56:09 +0000 (14:56 -0700)
committerOleg Drokin <green@whamcloud.com>
Tue, 10 May 2011 15:18:38 +0000 (08:18 -0700)
Commit fd0bd149e66cbc06a17c372e159f9bfba024cc97 changed the file checked
when the --with-ldiskfs-inkernel configure option is used from
$LINUX/fs/ldiskfs/inode.c to $LINUX/include/linux/ldiskfs_fs.h.

It looks like the person fixing a similar case statement assumed the
same fix applied to the inkernel case.  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.

Signed-off-by: Ned Bass <bass6@llnl.gov>
Change-Id: I6dc1db41fdee0016eab7d151c519e3359d78b44b
Reviewed-on: http://review.whamcloud.com/446
Reviewed-by: Brian J. Murrell <brian@whamcloud.com>
Tested-by: Hudson
Reviewed-by: Oleg Drokin <green@whamcloud.com>
build/autoconf/lustre-build.m4

index dd43a7e..1dd260a 100644 (file)
@@ -300,8 +300,8 @@ case x$with_ldiskfs in
                ;;
        xinkernel)
                AC_MSG_RESULT([inkernel])
                ;;
        xinkernel)
                AC_MSG_RESULT([inkernel])
-               LB_CHECK_FILE([$LINUX/fs/ldiskfs/inode.c],[],[
-                       AC_MSG_ERROR([ldiskfs was not found in $LINUX/fs/ldiskfs/inode.c])
+               LB_CHECK_FILE([$LINUX/include/linux/ldiskfs_fs.h],[],[
+                       AC_MSG_ERROR([ldiskfs was not found in $LINUX])
                ])
                ;;
        *)
                ])
                ;;
        *)