fstests.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] btrfs/139: require 2GB scratch dev
@ 2020-01-03 11:29 Johannes Thumshirn
  2020-01-03 15:42 ` Josef Bacik
  0 siblings, 1 reply; 2+ messages in thread
From: Johannes Thumshirn @ 2020-01-03 11:29 UTC (permalink / raw)
  To: Eryu Guan
  Cc: Qu Wenruo, linux-btrfs, fstests, Damien Le Moal, Johannes Thumshirn

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(+)

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
-- 
2.16.4


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] btrfs/139: require 2GB scratch dev
  2020-01-03 11:29 [PATCH] btrfs/139: require 2GB scratch dev Johannes Thumshirn
@ 2020-01-03 15:42 ` Josef Bacik
  0 siblings, 0 replies; 2+ messages in thread
From: Josef Bacik @ 2020-01-03 15:42 UTC (permalink / raw)
  To: Johannes Thumshirn, Eryu Guan
  Cc: Qu Wenruo, linux-btrfs, fstests, Damien Le Moal

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-01-03 15:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-03 11:29 [PATCH] btrfs/139: require 2GB scratch dev Johannes Thumshirn
2020-01-03 15:42 ` Josef Bacik

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).