From patchwork Mon Sep 24 10:16:31 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anand Jain X-Patchwork-Id: 10612213 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 EFE74913 for ; Mon, 24 Sep 2018 10:17:01 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E2A0729EEC for ; Mon, 24 Sep 2018 10:17:01 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D6DB129F02; Mon, 24 Sep 2018 10:17: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=-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=unavailable 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 96F5D29EFA for ; Mon, 24 Sep 2018 10:17:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728675AbeIXQSS (ORCPT ); Mon, 24 Sep 2018 12:18:18 -0400 Received: from userp2130.oracle.com ([156.151.31.86]:52230 "EHLO userp2130.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727567AbeIXQSR (ORCPT ); Mon, 24 Sep 2018 12:18:17 -0400 Received: from pps.filterd (userp2130.oracle.com [127.0.0.1]) by userp2130.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w8OAEbFr091292; Mon, 24 Sep 2018 10:16:57 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=6Gm0yZ6RzfjVhy2MmbjFuneZArJGoefNeKnRwu/74a4=; b=h6KuMvumM7Sts8MF3ZY0VtDsBzTUXUy7xoa8Sl/NQrYaGenv9SZtMndtQ7NZ7HyQJ6Xg S+eo45ASpm4/L6G1kAokzpeTdZcpZX22zMD4bvo4MyeN7j3mB0lXLf++h1R+J3vH39To 1+v7znn3xxI5Psl1H8CXZZTrmtKtr77PFBCAyMyf9iFjjVdPD+8p2jqTSAanBzDucICT Dj62mJB11qgOk79/A+hQIe27vvUUfy6G6ui3k+YcOqyw6+dyjlJ2/YcudgQ5PmRsJC+B SyCCHONbvDT17faoSyKiEXUn/dhg0qzX6RbKTv/n9Pt3hRqvVBymarle85SsGE0AuG0+ Kw== Received: from aserv0022.oracle.com (aserv0022.oracle.com [141.146.126.234]) by userp2130.oracle.com with ESMTP id 2mnd5t4tda-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 24 Sep 2018 10:16:57 +0000 Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by aserv0022.oracle.com (8.14.4/8.14.4) with ESMTP id w8OAGoRN032436 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 24 Sep 2018 10:16:51 GMT Received: from abhmp0001.oracle.com (abhmp0001.oracle.com [141.146.116.7]) by userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id w8OAGo28010096; Mon, 24 Sep 2018 10:16:50 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:50 -0700 From: Anand Jain To: fstests@vger.kernel.org Cc: linux-btrfs@vger.kernel.org Subject: [PATCH 7/9] generic/312 open code fs_size _scratch_mkfs_sized() Date: Mon, 24 Sep 2018 18:16:31 +0800 Message-Id: <1537784193-24431-8-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=909 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 fs_size isn't used anywhere else further more now grep tells what size is being used. Signed-off-by: Anand Jain --- tests/generic/312 | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/tests/generic/312 b/tests/generic/312 index 756f5c3e4c5a..465009c8d184 100755 --- a/tests/generic/312 +++ b/tests/generic/312 @@ -34,11 +34,10 @@ _supported_os Linux _require_xfs_io_command "falloc" _require_scratch -# 5G in byte -fssize=$((2**30 * 5)) - rm -f $seqres.full -_scratch_mkfs_sized $fssize >>$seqres.full 2>&1 + +# 5G FS +_scratch_mkfs_sized $((2**30 * 5)) >>$seqres.full 2>&1 _scratch_mount >>$seqres.full 2>&1 echo "Silence is golden"