btrfs/139: require 2GB scratch dev
diff mbox series

Message ID 20200103112905.1078-1-jth@kernel.org
State New
Headers show
Series
  • btrfs/139: require 2GB scratch dev
Related show

Commit Message

Johannes Thumshirn Jan. 3, 2020, 11:29 a.m. UTC
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 <jth@kernel.org>
---
 tests/btrfs/139 | 3 +++
 1 file changed, 3 insertions(+)

Comments

Josef Bacik Jan. 3, 2020, 3:42 p.m. UTC | #1
On 1/3/20 6:29 AM, Johannes Thumshirn wrote:
> 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 <jth@kernel.org>

Reviewed-by: Josef Bacik <josef@toxicpanda.com>

Thanks,

Josef

Patch
diff mbox series

diff --git a/tests/btrfs/139 b/tests/btrfs/139
index 5664617c..2f84c811 100755
--- a/tests/btrfs/139
+++ b/tests/btrfs/139
@@ -31,6 +31,9 @@  _cleanup()
 # remove previous $seqres.full before test
 rm -f $seqres.full
 
+# We at least need 2GB of free space on $SCRATCH_DEV
+_require_scratch_size $((2 * 1024 * 1024))
+
 _supported_fs btrfs
 _supported_os Linux
 _require_scratch