[ "$COUNT" ] || COUNT=10000
[ "$SLOW" = "no" ] && COUNT=1000
-[ "$MCREATE" ] || MCREATE=mcreate
-
[ "$MKDIRMANY" ] || MKDIRMANY="createmany -d"
[ "$RMDIRMANY" ] || RMDIRMANY="unlinkmany -d"
check_and_setup_lustre
test_1() {
+sleep 5 # let MDS refresh aggregated statfs
# Include some extra space for the status file
USED=$(df -P $DIR | awk '{ print $3 }' | tail -n 1)
log "done"
wait_delete_completed
+sleep 5 # let MDS refresh aggregated statfs
NOWUSED=$(($(df -P $DIR | awk '{ print $3 }' | tail -n 1)))
if [ $(expr $NOWUSED - $USED) -gt 1024 ]; then
error "Space not all freed: now ${NOWUSED}kB, was ${USED}kB."