From 511b335b76faf0dda3dbc938c1011f4af29e0ff8 Mon Sep 17 00:00:00 2001 From: Andreas Dilger Date: Thu, 13 Sep 2012 16:43:10 -0600 Subject: [PATCH] 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 --- lustre/tests/sanity.sh | 4 ++++ 1 file changed, 4 insertions(+) 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 -- 1.8.3.1