Whamcloud - gitweb
LU-1900 test: check for lustre version in sanity-scrub
[fs/lustre-release.git] / 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}