From 540aecca087f973bc44703e451ec913f9e6ae4b2 Mon Sep 17 00:00:00 2001 From: Minh Diep Date: Tue, 11 Sep 2012 22:12:31 -0700 Subject: [PATCH] LU-1900 test: check for lustre version in sanity-scrub Since OI scrub only available on lustre 2.3.0, we need to check if the mds runs at least 2.3.0 Signed-off-by: Minh Diep Change-Id: I5ce0462a1deb5bddfec88177a75a1c17b69b5217 Reviewed-on: http://review.whamcloud.com/3947 Tested-by: Hudson Reviewed-by: Andreas Dilger Tested-by: Maloo Reviewed-by: Oleg Drokin --- lustre/tests/sanity-scrub.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lustre/tests/sanity-scrub.sh b/lustre/tests/sanity-scrub.sh index ea517ac..a5647d3 100644 --- a/lustre/tests/sanity-scrub.sh +++ b/lustre/tests/sanity-scrub.sh @@ -19,6 +19,8 @@ init_logging [ "${MDSFSTYPE:-$FSTYPE}" != "ldiskfs" ] && skip "test OI scrub only for ldiskfs" && exit 0 +[[ $(lustre_version_code $SINGLEMDS) -ge $(version_code 2.3.0) ]] || + skip "Need MDS version at least 2.3.0" && exit 0 require_dsh_mds || exit 0 SAVED_MDSSIZE=${MDSSIZE} -- 1.8.3.1