From e6ad080616a2a51225aa0f98c0753c471219a73e Mon Sep 17 00:00:00 2001 From: kalpak Date: Fri, 8 Aug 2008 08:27:01 +0000 Subject: [PATCH] b=10555 i=adilger i=green i=girish add ldiskfs patches and lustre support for FIEMAP ioctl --- lustre/autoconf/lustre-core.m4 | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/lustre/autoconf/lustre-core.m4 b/lustre/autoconf/lustre-core.m4 index 5e04400..52998b0 100644 --- a/lustre/autoconf/lustre-core.m4 +++ b/lustre/autoconf/lustre-core.m4 @@ -576,6 +576,28 @@ AC_DEFUN([LC_XATTR_ACL], []) ]) +# +# LC_LINUX_FIEMAP_H +# +# If we have fiemap.h +# after 2.6.27 use fiemap.h in include/linux +# +AC_DEFUN([LC_LINUX_FIEMAP_H], +[LB_CHECK_FILE([$LINUX/include/linux/fiemap.h],[ + AC_MSG_CHECKING([if fiemap.h can be compiled]) + LB_LINUX_TRY_COMPILE([ + #include + ],[],[ + AC_MSG_RESULT([yes]) + AC_DEFINE(HAVE_LINUX_FIEMAP_H, 1, [Kernel has fiemap.h]) + ],[ + AC_MSG_RESULT([no]) + ]) +], +[]) +]) + + AC_DEFUN([LC_STRUCT_INTENT_FILE], [AC_MSG_CHECKING([if struct open_intent has a file field]) LB_LINUX_TRY_COMPILE([ -- 1.8.3.1