Message ID | 20200103112905.1078-1-jth@kernel.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | btrfs/139: require 2GB scratch dev | expand |
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
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
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(+)