From: Minh Diep Date: Wed, 12 Sep 2012 05:12:31 +0000 (-0700) Subject: LU-1900 test: check for lustre version in sanity-scrub X-Git-Tag: 2.3.51~105 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=b59c31057fb3500093d842a8b7c42771d19685b8 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 --- 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}