From patchwork Mon May 14 14:41:53 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zorro Lang X-Patchwork-Id: 10398573 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 9A49960536 for ; Mon, 14 May 2018 14:42:01 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8ADF627D4D for ; Mon, 14 May 2018 14:42:01 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7F61B27DCD; Mon, 14 May 2018 14:42:01 +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=-7.9 required=2.0 tests=BAYES_00, MAILING_LIST_MULTI, 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 1A4F627E01 for ; Mon, 14 May 2018 14:42:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752871AbeENOmA (ORCPT ); Mon, 14 May 2018 10:42:00 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:36716 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752302AbeENOmA (ORCPT ); Mon, 14 May 2018 10:42:00 -0400 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id BC0A4402290A for ; Mon, 14 May 2018 14:41:59 +0000 (UTC) Received: from localhost.localdomain.com (ovpn-12-160.pek2.redhat.com [10.72.12.160]) by smtp.corp.redhat.com (Postfix) with ESMTP id C29392024CA9 for ; Mon, 14 May 2018 14:41:58 +0000 (UTC) From: Zorro Lang To: fstests@vger.kernel.org Subject: [PATCH v3] xfs: skip growfs test on large device Date: Mon, 14 May 2018 22:41:53 +0800 Message-Id: <20180514144153.14638-1-zlang@redhat.com> X-Scanned-By: MIMEDefang 2.78 on 10.11.54.4 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.6]); Mon, 14 May 2018 14:41:59 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.6]); Mon, 14 May 2018 14:41:59 +0000 (UTC) for IP:'10.11.54.4' DOMAIN:'int-mx04.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'zlang@redhat.com' RCPT:'' Sender: fstests-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: fstests@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP When test on large SCRATCH_DEV, grow a small XFS to huge size is a horrible thing (e.g grow 128M to 500T). So skip this kind of tests if LARGE_SCRATCH_DEV is yes. Signed-off-by: Zorro Lang --- V3 drops all _scratch_xfs_growfs related code. Turn to use _require_no_large_scratch_dev. tests/xfs/002 | 1 + tests/xfs/127 | 1 + tests/xfs/233 | 1 + 3 files changed, 3 insertions(+) diff --git a/tests/xfs/002 b/tests/xfs/002 index 741117be..a6114748 100755 --- a/tests/xfs/002 +++ b/tests/xfs/002 @@ -51,6 +51,7 @@ _cleanup() _supported_fs xfs _supported_os Linux _require_scratch_nocheck +_require_no_large_scratch_dev # So we can explicitly turn it _off_: _require_xfs_mkfs_crc diff --git a/tests/xfs/127 b/tests/xfs/127 index 9df99904..60597fbf 100755 --- a/tests/xfs/127 +++ b/tests/xfs/127 @@ -45,6 +45,7 @@ _cleanup() _supported_os Linux _supported_fs xfs _require_scratch_reflink +_require_no_large_scratch_dev _require_cp_reflink echo "Format and mount" diff --git a/tests/xfs/233 b/tests/xfs/233 index e61c444d..b20dd4f1 100755 --- a/tests/xfs/233 +++ b/tests/xfs/233 @@ -44,6 +44,7 @@ _cleanup() _supported_os Linux _supported_fs xfs _require_xfs_scratch_rmapbt +_require_no_large_scratch_dev echo "Format and mount" _scratch_mkfs_sized $((2 * 4096 * 4096)) > $seqres.full 2>&1