Details : inode i_nlink equal zero is not enough for output message about disk
corruption, i_ctime and i_mode should be also checked.
+Severity : minor
+Bugzilla : 12415
+Frequency : always in patchless client
+Description: add configure check for truncate_complete_page
+Details : improve checks for exported symbols. This allow run check without
+ sources, but with Module.symvers shipped with kernel distribution.
+ add check for truncate_complete_page used by patchless client.
+
--------------------------------------------------------------------------------
2007-05-03 Cluster File Systems, Inc. <info@clusterfs.com>
],[
AC_MSG_RESULT([no])
])
+])
#
# LC_EXPORT___IGET
# starting from 2.6.19 linux kernel exports __iget()
#
AC_DEFUN([LC_EXPORT___IGET],
-[AC_MSG_CHECKING([if kernel exports __iget])
- if grep -q "EXPORT_SYMBOL(__iget)" $LINUX/fs/inode.c 2>/dev/null ; then
- AC_DEFINE(HAVE_EXPORT___IGET, 1, [kernel exports __iget])
- AC_MSG_RESULT([yes])
- else
- AC_MSG_RESULT([no])
- fi
+[LB_CHECK_SYMBOL_EXPORT([__iget],
+[fs/inode.c],[
+ AC_DEFINE(HAVE_EXPORT___IGET, 1, [kernel exports __iget])
+],[
])
])
+
AC_DEFUN([LC_LUSTRE_VERSION_H],
[LB_CHECK_FILE([$LINUX/include/linux/lustre_version.h],[
rm -f "$LUSTRE/include/linux/lustre_version.h"
])
AC_DEFUN([LC_FUNC_SET_FS_PWD],
-[AC_MSG_CHECKING([if kernel exports show_task])
-have_show_task=0
- if grep -q "EXPORT_SYMBOL(show_task)" \
- "$LINUX/fs/namespace.c" 2>/dev/null ; then
- AC_DEFINE(HAVE_SET_FS_PWD, 1, [set_fs_pwd is exported])
- AC_MSG_RESULT([yes])
- else
- AC_MSG_RESULT([no])
- fi
+[LB_CHECK_SYMBOL_EXPORT([set_fs_pwd],
+[fs/namespace.c],[
+ AC_DEFINE(HAVE_SET_FS_PWD, 1, [set_fs_pwd is exported])
+],[
+])
])
])
])
+AC_DEFUN([LC_EXPORT_TRUNCATE_COMPLETE],
+[LB_CHECK_SYMBOL_EXPORT([truncate_complete_page],
+[mm/truncate.c],[
+AC_DEFINE(HAVE_TRUNCATE_COMPLETE_PAGE, 1,
+ [kernel export truncate_complete_page])
+],[
+])
+])
+
+
#
# LC_PROG_LINUX
#
LC_CONFIG_HEALTH_CHECK_WRITE
LC_TASK_PPTR
+# RHEL4 pachess
+LC_EXPORT_TRUNCATE_COMPLETE
LC_STRUCT_KIOBUF
LC_FUNC_COND_RESCHED