From 6a31c46b1a44df94b133649af7515e2ef36c3bd6 Mon Sep 17 00:00:00 2001 From: Johannes Thumshirn Date: Fri, 3 Jan 2020 12:29:05 +0100 Subject: [PATCH] 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 --- tests/btrfs/139 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.30.2