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 <fdmanana@suse.com>
Signed-off-by: Johannes Thumshirn <jthumshirn@suse.de>
Reviewed-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
This commit is contained in:
Johannes Thumshirn
2019-12-12 08:45:43 +01:00
committed by Eryu Guan
parent 5ddc9604bd
commit 32bf2fee72
+3
View File
@@ -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