LB_LINUX_CONFIG([EXT3_FS_XATTR],[$1],[$3])
])
+
#
# LC_FSHOOKS
#
])
$1
],[
+LB_LINUX_TRY_COMPILE([
+ #include <linux/version.h>
+],[
+ #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,10))
+ #error "linux version < 2.6.10, only support 2.6.7"
+ #endif
+],[
$2
+],[
+$3
+])
])
])
])
])
+
+#
+# LC_FUNC_DEV_SET_RDONLY
+#
+# check for the old-style dev_set_rdonly which took an extra "devno" param
+# and can only set a single device to discard writes at one time
+#
+AC_DEFUN([LC_FUNC_DEV_SET_RDONLY],
+[AC_MSG_CHECKING([if kernel has old single-device dev_set_rdonly])
+HAVE_OLD_DSR="`grep -c -s 'dev_set_rdonly.*no_write' $LINUX/drivers/block/ll_rw_blk.c`"
+if test x$HAVE_OLD_DSR != "x1" ; then
+ HAVE_OLD_DSR="`grep -c -s 'dev_set_rdonly.*no_write' $LINUX/drivers/block/blkpg.c`"
+fi
+if test x$HAVE_OLD_DSR = "x1" ; then
+ AC_DEFINE(HAVE_OLD_DEV_SET_RDONLY, 1,
+ [kernel has old single-device dev_set_rdonly])
+ AC_MSG_RESULT(yes)
+else
+ AC_MSG_RESULT(no)
+fi
+])
+
+
#
# LC_CONFIG_BACKINGFS
#
LC_FSHOOKS([
LDISKFS_SERIES="2.6-suse.series"
],[
- LDISKFS_SERIES="2.6-vanilla.series"
- ])
+ LDISKFS_SERIES="2.6-fc3.series"
+ ],[
+ LDISKFS_SERIES="2.6-vanilla.series"
+ ]
+ )
AC_SUBST(LDISKFS_SERIES)
;;
esac # $BACKINGFS
])
+# check lookup_raw
+AC_DEFUN([LC_CONFIG_LOOKUP_RAW],
+[AC_MSG_CHECKING([whether to have raw lookup patch])
+HAVE_LOOKUP_RAW="`grep -c -s 'raw-lookup' $LUSTRE/kernel_patches/series/ldiskfs-$LDISKFS_SERIES`"
+
+if test x$HAVE_LOOKUP_RAW = "x1" ; then
+ AC_DEFINE(HAVE_LOOKUP_RAW, 1,
+ [kernel have lookup raw patch])
+ AC_MSG_RESULT(yes)
+else
+ AC_MSG_RESULT(no)
+fi
+])
+
#
# LC_CONFIG_PINGER
#
# Lustre linux kernel checks
#
AC_DEFUN([LC_PROG_LINUX],
-[LC_CONFIG_BACKINGFS
+[if test x$enable_server = xyes ; then
+ LC_CONFIG_BACKINGFS
+ LC_CONFIG_LOOKUP_RAW
+fi
LC_CONFIG_PINGER
LC_CONFIG_GSS
LC_CONFIG_SNAPFS
LC_FUNC_DIRECT_IO
LC_HEADER_MM_INLINE
LC_STRUCT_INODE
+LC_FUNC_DEV_SET_RDONLY
])
#
+# LC_CONFIG_CLIENT_SERVER
+#
+# Build client/server sides of Lustre
+#
+AC_DEFUN([LC_CONFIG_CLIENT_SERVER],
+[AC_MSG_CHECKING([whether to build Lustre server support])
+AC_ARG_ENABLE([server],
+ AC_HELP_STRING([--disable-server],
+ [disable Lustre server support]),
+ [],[enable_server='yes'])
+AC_MSG_RESULT([$enable_server])
+
+AC_MSG_CHECKING([whether to build Lustre client support])
+AC_ARG_ENABLE([client],
+ AC_HELP_STRING([--disable-client],
+ [disable Lustre client support]),
+ [],[enable_client='yes'])
+AC_MSG_RESULT([$enable_client])])
+
+#
# LC_CONFIG_LIBLUSTRE
#
# whether to build liblustre
AM_CONDITIONAL(LIBLUSTRE, test x$enable_liblustre = xyes)
AM_CONDITIONAL(LIBLUSTRE_TESTS, test x$enable_liblustre_tests = xyes)
AM_CONDITIONAL(MPITESTS, test x$enable_mpitests = xyes, Build MPI Tests)
+AM_CONDITIONAL(CLIENT, test x$enable_client = xyes)
+AM_CONDITIONAL(SERVER, test x$enable_server = xyes)
])
#
lustre/include/Makefile
lustre/include/linux/Makefile
lustre/include/lustre/Makefile
+lustre/kernel_patches/targets/2.6-fc3.target
lustre/ldiskfs/Makefile
lustre/ldiskfs/autoMakefile
lustre/ldlm/Makefile
lustre/sec/autoMakefile
lustre/sec/gss/Makefile
lustre/sec/gss/autoMakefile
+lustre/sec/gks/Makefile
+lustre/sec/gks/autoMakefile
lustre/smfs/Makefile
lustre/smfs/autoMakefile
lustre/snapfs/Makefile