Whamcloud - gitweb
LU-684 tests: replace dev_read_only patch with dm-flakey
[fs/lustre-release.git] / lustre / tests / sanity-lfsck.sh
index 6bc7557..8c1ed01 100644 (file)
@@ -42,11 +42,11 @@ SAVED_OSTCOUNT=${OSTCOUNT}
 MDSSIZE=100000
 OSTSIZE=100000
 # no need too many OSTs, to reduce the format/start/stop overhead
+cleanupall
 [ $OSTCOUNT -gt 4 ] && OSTCOUNT=4
 
 # build up a clean test environment.
-formatall
-setupall
+REFORMAT="yes" check_and_setup_lustre
 
 [[ $(lustre_version_code $SINGLEMDS) -le $(version_code 2.4.90) ]] &&
        ALWAYS_EXCEPT="$ALWAYS_EXCEPT 2c"
@@ -5157,7 +5157,8 @@ OSTSIZE=${SAVED_OSTSIZE}
 OSTCOUNT=${SAVED_OSTCOUNT}
 
 # cleanup the system at last
-formatall
+REFORMAT="yes" cleanup_and_setup_lustre
 
 complete $SECONDS
+check_and_cleanup_lustre
 exit_status