mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
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..
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user