From patchwork Mon Sep 24 10:16:30 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anand Jain X-Patchwork-Id: 10612193 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 11134913 for ; Mon, 24 Sep 2018 10:16:54 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 02F4629EEC for ; Mon, 24 Sep 2018 10:16:54 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EB95229F01; Mon, 24 Sep 2018 10:16:53 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI, UNPARSEABLE_RELAY 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 41EB529EEC for ; Mon, 24 Sep 2018 10:16:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728663AbeIXQSL (ORCPT ); Mon, 24 Sep 2018 12:18:11 -0400 Received: from userp2120.oracle.com ([156.151.31.85]:36962 "EHLO userp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728549AbeIXQSK (ORCPT ); Mon, 24 Sep 2018 12:18:10 -0400 Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w8OAEjGe053310; Mon, 24 Sep 2018 10:16:50 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : in-reply-to : references; s=corp-2018-07-02; bh=HIlr8p2L3uvGDFsu8ez44dI/wbPW4cQpocYHGQo9wRY=; b=EnXcFrN70cjfojoyJWUjLoL39rxWvRf65e32N+OKE2J6DSBiqu3eI14dl/sCU1CLDjdk sQbDmC5N9ZBhIVMmRsF8G9UKc6J1iMJ+8Bwf8wqLY7/ycPXRFyl6zNpDd/B7AYVS8pmd JWh9iRiW32G6Rw/45nD023lIuu1VkT3I4iB1w43ZKjoWGHFs65ST7RvtWKsJC+ILF8Bn tBt2odyZuw6ySZcugd9I2OSUE5tpG7JvlgK8Xoo3lc4xjH+ALORZzevG9RL7n5eLDEMO 4kSLf1btGgbhxa/wp5VtdcISvKZpJQGr3krhovMhN3SzbGzYRUI4Tff9JWnQlXIcSR7J NQ== Received: from userv0021.oracle.com (userv0021.oracle.com [156.151.31.71]) by userp2120.oracle.com with ESMTP id 2mnvtubfjc-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 24 Sep 2018 10:16:50 +0000 Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by userv0021.oracle.com (8.14.4/8.14.4) with ESMTP id w8OAGnEZ017605 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 24 Sep 2018 10:16:49 GMT Received: from abhmp0001.oracle.com (abhmp0001.oracle.com [141.146.116.7]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id w8OAGnXe032220; Mon, 24 Sep 2018 10:16:49 GMT Received: from tpasj.sg.oracle.com (/10.186.50.4) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 24 Sep 2018 03:16:48 -0700 From: Anand Jain To: fstests@vger.kernel.org Cc: linux-btrfs@vger.kernel.org Subject: [PATCH 6/9] generic/204 open code SIZE for _scratch_mkfs_sized() Date: Mon, 24 Sep 2018 18:16:30 +0800 Message-Id: <1537784193-24431-7-git-send-email-anand.jain@oracle.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1537784193-24431-1-git-send-email-anand.jain@oracle.com> References: <1537784193-24431-1-git-send-email-anand.jain@oracle.com> X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9025 signatures=668707 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=1 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=913 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1807170000 definitions=main-1809240108 Sender: fstests-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: fstests@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP By open code we could grep to find out FS size being use by this test case. Signed-off-by: Anand Jain --- tests/generic/204 | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/generic/204 b/tests/generic/204 index 349f5eff351f..576c4eabd359 100755 --- a/tests/generic/204 +++ b/tests/generic/204 @@ -42,8 +42,7 @@ _scratch_mkfs 2> /dev/null | _filter_mkfs 2> $tmp.mkfs > /dev/null # time solves this problem. [ $FSTYP = "xfs" ] && MKFS_OPTIONS="$MKFS_OPTIONS -l size=16m -i maxpct=50" -SIZE=`expr 115 \* 1024 \* 1024` -_scratch_mkfs_sized $SIZE $dbsize 2> /dev/null > $tmp.mkfs.raw +_scratch_mkfs_sized $((115 * 1024 * 1024)) $dbsize 2> /dev/null > $tmp.mkfs.raw cat $tmp.mkfs.raw | _filter_mkfs 2> $tmp.mkfs > /dev/null _scratch_mount