From patchwork Thu Dec 12 07:45:43 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johannes Thumshirn X-Patchwork-Id: 11287137 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 193AB14BD for ; Thu, 12 Dec 2019 07:45:48 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id E76442173E for ; Thu, 12 Dec 2019 07:45:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728099AbfLLHpr (ORCPT ); Thu, 12 Dec 2019 02:45:47 -0500 Received: from mx2.suse.de ([195.135.220.15]:36494 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728095AbfLLHpr (ORCPT ); Thu, 12 Dec 2019 02:45:47 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 1BB85AB9B; Thu, 12 Dec 2019 07:45:46 +0000 (UTC) From: Johannes Thumshirn To: fstests@vger.kernel.org Cc: Linux BTRFS Mailinglist , jth@kernel.org, Johannes Thumshirn , Filipe Manana Subject: [PATCH fstests] btrfs/187: require 8GB scratch dev Date: Thu, 12 Dec 2019 08:45:43 +0100 Message-Id: <20191212074543.30628-1-jthumshirn@suse.de> X-Mailer: git-send-email 2.16.4 Sender: fstests-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: fstests@vger.kernel.org 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 --- tests/btrfs/187 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/btrfs/187 b/tests/btrfs/187 index 0744797ecc33..a604690a41b2 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