Whamcloud - gitweb
LU-2183 quota: quota tests for DNE
[fs/lustre-release.git] / lustre / tests / scrub-performance.sh
index 8c9b675..0c029e7 100644 (file)
@@ -13,8 +13,10 @@ init_test_env $@
 . ${CONFIG:=$LUSTRE/tests/cfg/$NAME.sh}
 init_logging
 
-[ "${MDSFSTYPE:-$FSTYPE}" != "ldiskfs" ] &&
+[ $(facet_fstype $SINGLEMDS) != ldiskfs ] &&
        skip "OI scrub performance only for ldiskfs" && exit 0
+[[ $(lustre_version_code $SINGLEMDS) -lt $(version_code 2.2.90) ]] &&
+       skip "Need MDS version at least 2.2.90" && exit 0
 require_dsh_mds || exit 0
 
 NTHREADS=${NTHREADS:-0}
@@ -155,7 +157,7 @@ test_0() {
                        error "Fail to start MDS!"
 
                while true; do
-                       local STATUS=$($SHOW_SCRUB | \
+                       local STATUS=$($SHOW_SCRUB |
                                        awk '/^status/ { print $2 }')
                        [ "$STATUS" == "completed" ] && break
                        sleep 3 # check status every 3 seconds
@@ -173,5 +175,5 @@ run_test 0 "OI scrub performance test"
 
 # cleanup the system at last
 scrub_cleanup
-complete $(basename $0) $SECONDS
+complete $SECONDS
 exit_status