Whamcloud - gitweb
Branch HEAD
authoryangsheng <yangsheng>
Thu, 10 Apr 2008 03:25:49 +0000 (03:25 +0000)
committeryangsheng <yangsheng>
Thu, 10 Apr 2008 03:25:49 +0000 (03:25 +0000)
b=13397
i=shadow
i=johann

Update Lustre server to support 2.6.22.14 vanilla kernel.

build/lustre-kernel-2.4.spec.in
lustre/ChangeLog
lustre/autoconf/lustre-core.m4
lustre/kernel_patches/targets/2.6-vanilla.target.in
lustre/mdt/mdt_idmap.c
lustre/utils/mount_lustre.c

index 93450ae..54e8340 100644 (file)
@@ -650,7 +650,6 @@ BuildObj ()
            MAKE_CC="CC=$CC"
        fi
        $MAKE "$MAKE_CC" $OLDCONFIG
-       $MAKE "$MAKE_CC" prepare-all
        $MAKE clean
        rm -rf $o/.config.old $o/include/config
         # Replace the Makefile in the object directory with a version
index 3b87f95..c7e9d22 100644 (file)
@@ -3,7 +3,8 @@ tbd  Sun Microsystems, Inc.
        * Support for kernels:
         2.6.9-67.0.4.EL (RHEL 4),
         2.6.16.54-0.2.5 (SLES 10),
-        2.6.18-53.1.14.el5 (RHEL 5).
+        2.6.18-53.1.14.el5 (RHEL 5),
+        2.6.22.14 vanilla (kernel.org).
        * Client support for unpatched kernels:
         (see http://wiki.lustre.org/index.php?title=Patchless_Client)
         2.6.16 - 2.6.21 vanilla (kernel.org)
@@ -12,6 +13,10 @@ tbd  Sun Microsystems, Inc.
        * RHEL 4 and RHEL 5/SLES 10 clients behaves differently on 'cd' to a
         removed cwd "./" (refer to Bugzilla 14399).
 
+Severity   : enhancement
+Bugzilla   : 13397
+Description: Update to support 2.6.22.14 vanilla kernel.
+
 Severity   : normal
 Bugzilla   : 14533
 Frequency  : rare, on recovery
index 772ba1f..7a628c0 100644 (file)
@@ -598,6 +598,21 @@ AC_DEFUN([LC_EXPORT___IGET],
 ])
 ])
 
+#
+# LC_EXPORT_NR_FREE_BUFFER_PAGES
+# starting from 2.6.23 linux kernel exports nr_free_buffer_pages()
+#
+AC_DEFUN([LC_EXPORT_NR_FREE_BUFFER_PAGES],
+[LB_CHECK_SYMBOL_EXPORT([nr_free_buffer_pages],
+[mm/page_alloc.c],[
+        AC_DEFINE(HAVE_EXPORT_NR_FREE_BUFFER_PAGES, 1, [kernel exports nr_free_buffer_pages])
+],[
+       if test x$enable_server = xyes ; then
+               AC_MSG_ERROR([lustre server needs this symbol to be exported.])
+       fi
+])
+])
+
 
 AC_DEFUN([LC_LUSTRE_VERSION_H],
 [LB_CHECK_FILE([$LINUX/include/linux/lustre_version.h],[
@@ -1542,6 +1557,7 @@ AC_DEFUN([LC_PROG_LINUX],
          LC_UNREGISTER_BLKDEV_RETURN_INT
          LC_KERNEL_SPLICE_READ
          LC_HAVE_EXPORTFS_H
+         LC_EXPORT_NR_FREE_BUFFER_PAGES
 ])
 
 #
index dd7a0c2..22b55d7 100644 (file)
@@ -1,8 +1,8 @@
-lnxmaj="2.6.18"
-lnxrel="8"
+lnxmaj="2.6.22"
+lnxrel="14"
 
 KERNEL=linux-$lnxmaj.$lnxrel.tar.bz2
-SERIES=2.6.18-vanilla.series
+SERIES=2.6.22-vanilla.series
 VERSION=$lnxmaj
 EXTRA_VERSION="${lnxrel}_lustre.@VERSION@"
 LUSTRE_VERSION=@VERSION@
index fb81041..468c779 100644 (file)
@@ -27,7 +27,9 @@
 #endif
 #define DEBUG_SUBSYSTEM S_MDS
 
+#ifndef AUTOCONF_INCLUDED
 #include <linux/config.h>
+#endif
 #include <linux/module.h>
 #include <linux/kernel.h>
 #include <linux/mm.h>
index 004890c..c0905bc 100644 (file)
@@ -206,6 +206,7 @@ static const struct opt_map opt_map[] = {
   { "nouser",   1, 0         },      /* Forbid ordinary user to mount */
   { "noowner",  1, 0         },      /* Device owner has no special privs */
   { "_netdev",  0, 0         },      /* Device accessible only via network */
+  { "loop",     0, 0         },
   { NULL,       0, 0         }
 };
 /****************************************************************************/