Details
-
Bug
-
Resolution: Unresolved
-
Minor
-
None
-
None
-
None
-
3
-
10905
Description
We should not remove all files under mount. This prevent multiple tests being run at the same time
check_and_cleanup_lustre() {
if [ "$LFSCK_ALWAYS" = "yes" -a "$TESTSUITE" != "lfsck" ]; then
get_svr_devs
generate_db
run_lfsck
fi
if is_mounted $MOUNT; then
[ -n "$DIR" ] && rm -rf $DIR/[Rdfs][0-9]* ||
error "remove sub-test dirs failed"
[ "$ENABLE_QUOTA" ] && restore_quota_type || true
fi
if [ "$I_UMOUNTED2" = "yes" ]; then
restore_mount $MOUNT2 || error "restore $MOUNT2 failed"
fi
if [ "$I_MOUNTED2" = "yes" ]; then
cleanup_mount $MOUNT2
fi
if [ "$I_MOUNTED" = "yes" ]; then
cleanupall -f || error "cleanup failed"
unset I_MOUNTED
fi
}