Whamcloud - gitweb
LU-1900 test: check for lustre version in sanity-scrub
authorMinh Diep <mdiep@whamcloud.com>
Wed, 12 Sep 2012 05:12:31 +0000 (22:12 -0700)
committerOleg Drokin <green@whamcloud.com>
Thu, 13 Sep 2012 13:28:07 +0000 (09:28 -0400)
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 <mdiep@whamcloud.com>
Change-Id: I5ce0462a1deb5bddfec88177a75a1c17b69b5217
Reviewed-on: http://review.whamcloud.com/3947
Tested-by: Hudson
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/tests/sanity-scrub.sh

index ea517ac..a5647d3 100644 (file)
@@ -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}