Whamcloud - gitweb
o=Adilger
authorgrev <grev>
Fri, 26 Jun 2009 09:14:58 +0000 (09:14 +0000)
committergrev <grev>
Fri, 26 Jun 2009 09:14:58 +0000 (09:14 +0000)
i=Robert
i=grev
report patchless_client for kernel version

lustre/obdclass/linux/linux-module.c
lustre/tests/sanity.sh

index a801349..46f30d8 100644 (file)
@@ -245,7 +245,8 @@ int obd_proc_read_version(char *page, char **start, off_t off, int count,
                         BUILD_VERSION);
 #else
         return snprintf(page, count, "lustre: %s\nkernel: %s\nbuild:  %s\n",
-                        LUSTRE_VERSION_STRING, "patchless", BUILD_VERSION);
+                        LUSTRE_VERSION_STRING, "patchless_client",
+                        BUILD_VERSION);
 #endif
 }
 
index a3246fe..c50519f 100644 (file)
@@ -90,11 +90,12 @@ setup() {
 }
 
 check_kernel_version() {
-       VERSION_FILE=version
        WANT_VER=$1
-       GOT_VER=$(lctl get_param -n $VERSION_FILE | awk '/kernel:/ {print $2}')
-       [ $GOT_VER == "patchless" ] && return 0
-       [ $GOT_VER -ge $WANT_VER ] && return 0
+       GOT_VER=$(lctl get_param -n version | awk '/kernel:/ {print $2}')
+       case $GOT_VER in
+       patchless|patchless_client) return 0;;
+       *) [ $GOT_VER -ge $WANT_VER ] && return 0 ;;
+       esac
        log "test needs at least kernel version $WANT_VER, running $GOT_VER"
        return 1
 }