From: Mohamed Barwani Date: Thu, 1 Nov 2007 03:11:35 +0000 (+0000) Subject: Added a check for disk space.. X-Git-Tag: v1.1.0~428 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=a2d17b45c1e4adff7707bf40f325ef195d1a5e56;p=xfstests-dev.git Added a check for disk space.. Merge of master-melb:xfs-cmds:29995a by kenmcd. Check if there is enough disk space to run this test.. --- diff --git a/180 b/180 index 13ed6fd7..5d4247e3 100644 --- a/180 +++ b/180 @@ -37,6 +37,11 @@ _require_scratch _scratch_mkfs_xfs >/dev/null 2>&1 _scratch_mount +# Do we have enough space on disk? +FREE_BLOCKS=`df -kl $SCRATCH_MNT | grep -v Filesystem | awk '{print $4}'` +[ $FREE_BLOCKS -lt 10485760 ] && _notrun "This test requires at least 10GB of \ + $SCRATCH_DEV to run" + _check_files() { # check file size and contents