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."