_cleanup()
{
cd /
- umount $SCRATCH_DEV >/dev/null 2>&1
+ _scratch_unmount >/dev/null 2>&1
}
trap "_cleanup; exit \$status" 0 1 2 3 15
xfs_quota -x -c off $SCRATCH_DEV
# and unmount (this used to crash)
-umount $SCRATCH_DEV
+_scratch_unmount
# create scratch filesystem
_scratch_mkfs_xfs >/dev/null 2>&1
xfs_quota -x -c off -c remove $SCRATCH_DEV
# and unmount again
-umount $SCRATCH_DEV
+_scratch_unmount
status=0
exit $status