[Pvfs2-cvs] commit by pcarns in pvfs2-1: configure pvfs2-config.h.in

CVS commit program cvs at parl.clemson.edu
Fri Apr 11 13:05:24 EDT 2008


Update of /projects/cvsroot/pvfs2-1
In directory parlweb1:/tmp/cvs-serv20643

Modified Files:
	configure pvfs2-config.h.in 
Log Message:
configure test to account for 2.6.15->2.6.16 change from using inode->i_sem
to inode->i_mutex for inode locking


Index: configure
===================================================================
RCS file: /projects/cvsroot/pvfs2-1/configure,v
diff -p -u -r1.388 -r1.389
--- configure	14 Mar 2008 21:51:14 -0000	1.388
+++ configure	11 Apr 2008 17:05:22 -0000	1.389
@@ -8888,6 +8888,64 @@ fi
 
 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
+		{ echo "$as_me:$LINENO: checking for i_sem in struct inode" >&5
+echo $ECHO_N "checking for i_sem in struct inode... $ECHO_C" >&6; }
+	cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h.  */
+
+		#define __KERNEL__
+		#include <linux/fs.h>
+		static struct inode i = {
+			.i_sem = {0},
+			};
+
+int
+main ()
+{
+
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+  *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
+  (eval "$ac_compile") 2>conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 >conftest.err
+  rm -f conftest.er1
+  cat conftest.err >&5
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); } && {
+	 test -z "$ac_c_werror_flag" ||
+	 test ! -s conftest.err
+       } && test -s conftest.$ac_objext; then
+  { echo "$as_me:$LINENO: result: yes" >&5
+echo "${ECHO_T}yes" >&6; }
+
+cat >>confdefs.h <<\_ACEOF
+#define HAVE_I_SEM_IN_STRUCT_INODE 1
+_ACEOF
+
+else
+  echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+	{ echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6; }
+
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+
 		{ echo "$as_me:$LINENO: checking for statfs_lite callback in struct super_operations in kernel" >&5
 echo $ECHO_N "checking for statfs_lite callback in struct super_operations in kernel... $ECHO_C" >&6; }
 	cat >conftest.$ac_ext <<_ACEOF
@@ -17024,7 +17082,7 @@ if test "$ac_res" != no; then
   ac_cv_func_getmntent=yes
 
 cat >>confdefs.h <<\_ACEOF
-#define HAVE_GETMNTENT
+#define HAVE_GETMNTENT 1
 _ACEOF
 
 else

Index: pvfs2-config.h.in
===================================================================
RCS file: /projects/cvsroot/pvfs2-1/pvfs2-config.h.in,v
diff -p -u -r1.117 -r1.118
--- pvfs2-config.h.in	11 Mar 2008 15:33:59 -0000	1.117
+++ pvfs2-config.h.in	11 Apr 2008 17:05:24 -0000	1.118
@@ -150,6 +150,9 @@
 /* Define if struct inode in kernel has i_blksize member */
 #undef HAVE_I_BLKSIZE_IN_STRUCT_INODE
 
+/* Define if struct inode in kernel has i_sem member */
+#undef HAVE_I_SEM_IN_STRUCT_INODE
+
 /* Define if kernel has i_size_read */
 #undef HAVE_I_SIZE_READ
 



More information about the Pvfs2-cvs mailing list