From patchwork Wed Mar 15 16:33:25 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jan Tulak X-Patchwork-Id: 9626121 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id BE985604A9 for ; Wed, 15 Mar 2017 16:34:46 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B268F28667 for ; Wed, 15 Mar 2017 16:34:46 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A73EC28669; Wed, 15 Mar 2017 16:34:46 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4137228667 for ; Wed, 15 Mar 2017 16:34:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751935AbdCOQed (ORCPT ); Wed, 15 Mar 2017 12:34:33 -0400 Received: from mx1.redhat.com ([209.132.183.28]:43376 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751580AbdCOQda (ORCPT ); Wed, 15 Mar 2017 12:33:30 -0400 Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 10F5B128D for ; Wed, 15 Mar 2017 16:33:30 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 10F5B128D Authentication-Results: ext-mx05.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx05.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=jtulak@redhat.com DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.redhat.com 10F5B128D Received: from honza-mbp.redhat.com (ovpn-204-198.brq.redhat.com [10.40.204.198]) by int-mx14.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id v2FGXSsU015837; Wed, 15 Mar 2017 12:33:29 -0400 From: Jan Tulak To: fstests@vger.kernel.org Cc: Jan Tulak Subject: [PATCH 1/1] xfstests: fix failing of xfs/191 with small test devices Date: Wed, 15 Mar 2017 17:33:25 +0100 Message-Id: <20170315163325.29651-1-jtulak@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.27 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.29]); Wed, 15 Mar 2017 16:33:30 +0000 (UTC) Sender: fstests-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: fstests@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add a _require_fs_space and make the necessary size smaller. It should work the same with 400 MB instead of 4 GB, and it will have less issues on small VMs. Signed-off-by: Jan Tulak --- tests/xfs/191-input-validation | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/xfs/191-input-validation b/tests/xfs/191-input-validation index cff3efa9..5de55170 100755 --- a/tests/xfs/191-input-validation +++ b/tests/xfs/191-input-validation @@ -65,10 +65,12 @@ SCRATCH_LOGDEV= SCRATCH_RTDEV= # limit the image size of the filesystem being created to something small -fssize=$((4 * 1024 * 1024 * 1024)) -logsize=$((4 * 1024 * 1024 * 100)) +fssize=$((400 * 1024 * 1024 )) +logsize=$((40 * 1024 * 1024 )) fsimg=$TEST_DIR/$seq.img +_require_fs_space $TEST_DIR $(( (fssize + (logsize*2))/1024 )) + do_mkfs_pass() { echo >> $seqres.full