From: Johannes Thumshirn Date: Fri, 3 Jan 2020 11:29:05 +0000 (+0100) Subject: btrfs/139: require 2GB scratch dev X-Git-Tag: v2022.05.01~909 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=6a31c46b1a44df94b133649af7515e2ef36c3bd6;p=xfstests-dev.git btrfs/139: require 2GB scratch dev In my testing on 1GB zram devices btrfs/139 usually fails with ENOSPC. Add a requirement for 2GB scratch devices (empirically measured). Signed-off-by: Johannes Thumshirn Reviewed-by: Josef Bacik Signed-off-by: Eryu Guan --- diff --git a/tests/btrfs/139 b/tests/btrfs/139 index 5664617c..1b636e81 100755 --- a/tests/btrfs/139 +++ b/tests/btrfs/139 @@ -33,7 +33,8 @@ rm -f $seqres.full _supported_fs btrfs _supported_os Linux -_require_scratch +# We at least need 2GB of free space on $SCRATCH_DEV +_require_scratch_size $((2 * 1024 * 1024)) _scratch_mkfs > /dev/null 2>&1 _scratch_mount