From: Andreas Dilger Date: Thu, 13 Sep 2012 22:43:10 +0000 (-0600) Subject: LU-1540 tests: only run test for ldiskfs MDT X-Git-Tag: 2.3.52~24 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=511b335b76faf0dda3dbc938c1011f4af29e0ff8 LU-1540 tests: only run test for ldiskfs MDT Skip the test for LU-1540 (NUL symlink termination) on ZFS MDT filesystems, since e2fsck won't work there. Signed-off-by: Andreas Dilger Change-Id: Ibba41352119f77b296e95520603b8d5527ab91b7 Reviewed-on: http://review.whamcloud.com/3987 Tested-by: Hudson Tested-by: Maloo Reviewed-by: Oleg Drokin --- diff --git a/lustre/tests/sanity.sh b/lustre/tests/sanity.sh index da12150..c31107c 100644 --- a/lustre/tests/sanity.sh +++ b/lustre/tests/sanity.sh @@ -506,6 +506,10 @@ test_17m() { [ $(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 + + [ "$(facet_fstype $SINGLEMDS)" != "ldiskfs" ] && + skip "only for ldiskfs MDT" && return 0 + mkdir -p $WDIR long_sym=$short_sym # create a long symlink file