Whamcloud - gitweb
LU-1540 tests: skip sanity test_17m on old MDS
authorAndreas Dilger <adilger@whamcloud.com>
Sat, 15 Sep 2012 20:35:03 +0000 (14:35 -0600)
committerOleg Drokin <green@whamcloud.com>
Wed, 19 Sep 2012 13:48:06 +0000 (09:48 -0400)
Don't run sanity.sh test_17m() in interop mode for 2.2 MDSes (the
original LU-1540 fix was included in 2.1.3 and 2.2.94), since they
will not create symlinks correctly, and the e2fsck test will fail.

Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Change-Id: If3da1f8bdf7243bac6c72a2733b488a6e69f2304
Reviewed-on: http://review.whamcloud.com/4004
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Yu Jian <yujian@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/tests/sanity.sh

index da388b4..7a00d4d 100644 (file)
@@ -498,6 +498,9 @@ test_17m() {
        local i
        local rc=0
 
+       [ $(lustre_version_code $SINGLEMDS) -ge $(version_code 2.2.0) ] &&
+       [ $(lustre_version_code $SINGLEMDS) -le $(version_code 2.2.93) ] &&
+               skip "MDS 2.2.0-2.2.93 do not NUL-terminate symlinks" && return
        mkdir -p $WDIR
        long_sym=$short_sym
        # create a long symlink file