require_dsh_ost || exit 0
[ "$SLOW" = "no" ] &&
- skip "skip lfsck performance test under non-SLOW mode" && exit 0
+ skip "skip lfsck performance test under non-SLOW mode"
NTHREADS=${NTHREADS:-0}
UNIT=${UNIT:-8192}
lfsck_cleanup() {
do_rpc_nodes $(facet_active_host $SINGLEMDS) unload_modules
- formatall
+ REFORMAT="yes" cleanup_and_setup_lustre
}
lfsck_create_nfiles() {
test_1() {
[ $(facet_fstype $SINGLEMDS) != ldiskfs ] &&
- skip "not implemented for ZFS" && return
+ skip_env "not implemented for ZFS"
local BCOUNT=0
local i
run_test 7c "namespace LFSCK performance (repairing bad FID-in-dirent) for DNE"
test_8() {
- [ $MDSCOUNT -lt 2 ] && skip "needs >= 2 MDTs" && return
+ [ $MDSCOUNT -lt 2 ] && skip_env "needs >= 2 MDTs"
[ $INCFACTOR -gt 25 ] && INCFACTOR=25
# cleanup the system at last
lfsck_cleanup
complete $SECONDS
+check_and_cleanup_lustre
exit_status