From 32bf2fee72266edc2354c3fc28d8da2fd3cd60c2 Mon Sep 17 00:00:00 2001 From: Johannes Thumshirn Date: Thu, 12 Dec 2019 08:45:43 +0100 Subject: [PATCH] btrfs/187: require 8GB scratch dev In my testing on 1GB zram devices btrfs/187 usually fails with ENOSPC. Add a requirement for 8GB scratch devices (empirically measured). Cc: Filipe Manana Signed-off-by: Johannes Thumshirn Reviewed-by: Josef Bacik Signed-off-by: Eryu Guan --- tests/btrfs/187 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/btrfs/187 b/tests/btrfs/187 index 0744797e..a604690a 100755 --- a/tests/btrfs/187 +++ b/tests/btrfs/187 @@ -39,6 +39,9 @@ _require_attrs rm -f $seqres.full +# We at least need 8GB of free space on $SCRATCH_DEV +_require_scratch_size $((8 * 1024 * 1024)) + _scratch_mkfs >>$seqres.full 2>&1 _scratch_mount -- 2.30.2