Whamcloud - gitweb
Branch b1_8_gate
authoryangsheng <yangsheng>
Thu, 24 Jul 2008 14:56:09 +0000 (14:56 +0000)
committeryangsheng <yangsheng>
Thu, 24 Jul 2008 14:56:09 +0000 (14:56 +0000)
b=15308
i=johann, shadow, zhenyu.xu, brian

Update to SLES10 SP2 kernel-2.6.16.60-0.23 and update to OFED-1.3.1.

lustre/autoconf/lustre-core.m4

index 7623b34..c9b482f 100644 (file)
@@ -1338,6 +1338,9 @@ AC_DEFUN([LC_PROG_LINUX],
           # 2.6.15
           LC_INODE_I_MUTEX
 
+          # 2.6.16
+          LC_SECURITY_PLUG  # for SLES10 SP2
+
           # 2.6.17
           LC_DQUOTOFF_MUTEX
 
@@ -1580,6 +1583,27 @@ LB_LINUX_TRY_COMPILE([
 ])
 ])
 
+# LC_SECURITY_PLUG  # for SLES10 SP2
+# check security plug in sles10 sp2 kernel 
+AC_DEFUN([LC_SECURITY_PLUG],
+[AC_MSG_CHECKING([If kernel has security plug support])
+LB_LINUX_TRY_COMPILE([
+        #include <linux/fs.h>
+],[
+        struct dentry   *dentry;
+        struct vfsmount *mnt;
+        struct iattr    *iattr;
+
+        notify_change(dentry, mnt, iattr);
+],[
+        AC_MSG_RESULT(yes)
+        AC_DEFINE(HAVE_SECURITY_PLUG, 1,
+                [SLES10 SP2 use extra parameter in vfs])
+],[
+        AC_MSG_RESULT(NO)
+])
+])
+
 #
 # LC_CONFIGURE
 #