From patchwork Mon Sep 24 10:16:25 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anand Jain X-Patchwork-Id: 10612185 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 54C5615A6 for ; Mon, 24 Sep 2018 10:16:51 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 474C629EEC for ; Mon, 24 Sep 2018 10:16:51 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3B6AE29EFA; Mon, 24 Sep 2018 10:16:51 +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 E349A29EFE for ; Mon, 24 Sep 2018 10:16:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725992AbeIXQSG (ORCPT ); Mon, 24 Sep 2018 12:18:06 -0400 Received: from aserp2120.oracle.com ([141.146.126.78]:36328 "EHLO aserp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728229AbeIXQSF (ORCPT ); Mon, 24 Sep 2018 12:18:05 -0400 Received: from pps.filterd (aserp2120.oracle.com [127.0.0.1]) by aserp2120.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w8OAEsik107805; Mon, 24 Sep 2018 10:16:44 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=b4/O6hr7kdAPr6yQPllYGkZ2rCnWSzNRnrYY+TU22jw=; b=sxwASZAVcRSnZ5zW4T6yuoajnJNnS52t8OTPWBIn3jk6x8DkOAEUlEE2fD1i/YkUuXVN d/fKm8kCqelaz9gq8pcii6IkmMOdV0AMp1gtCPztC73fbCN4IB+8khbYqO9oQ/H7OW1P nmzPUNB4yL9FWZtufqKmEslA6FI0r6mfM5N8k9odd/tn8ppwKlPgylT2p26fu9NCLNDt nfaP07QRJIUyfbKeCnx8pQIhzJm9LrHrcYYKg1+UW1jf+cPeWRhKfydtdf7cT63k+2JS ncMlVSzMXIZCOSwnX0xIJmRDTV1Vg2Tv5myCzIUYXUqIN6ML36OddUf4BdhB644XlDk5 jw== Received: from userv0022.oracle.com (userv0022.oracle.com [156.151.31.74]) by aserp2120.oracle.com with ESMTP id 2mndpp4rgw-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 24 Sep 2018 10:16:44 +0000 Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by userv0022.oracle.com (8.14.4/8.14.4) with ESMTP id w8OAGgBE020736 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 24 Sep 2018 10:16:43 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 w8OAGgiw032201; Mon, 24 Sep 2018 10:16:42 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:42 -0700 From: Anand Jain To: fstests@vger.kernel.org Cc: linux-btrfs@vger.kernel.org Subject: [PATCH 1/9] fstests: btrfs: _scratch_mkfs_sized fix min size without mixed option Date: Mon, 24 Sep 2018 18:16:25 +0800 Message-Id: <1537784193-24431-2-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=13 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=710 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 As of now _scratch_mkfs_sized check if the requested size is below 1G and forces the --mixed option for the mkfs.btrfs. Well the correct size at which we need to force the mixed option is 114294784bytes. Fix that. Signed-off-by: Anand Jain --- common/rc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/common/rc b/common/rc index d5bb1feee2c3..bcdbf03e1bf0 100644 --- a/common/rc +++ b/common/rc @@ -969,7 +969,9 @@ _scratch_mkfs_sized() ;; btrfs) local mixed_opt= - (( fssize <= 1024 * 1024 * 1024 )) && mixed_opt='--mixed' + # minimum size that's needed without the mixed option. + # Non mixed mode is also the default option. + (( fssize < 114294784 )) && mixed_opt='--mixed' $MKFS_BTRFS_PROG $MKFS_OPTIONS $mixed_opt -b $fssize $SCRATCH_DEV ;; jfs) From patchwork Mon Sep 24 10:16:26 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anand Jain X-Patchwork-Id: 10612197 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 54951157B for ; Mon, 24 Sep 2018 10:16:55 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4773429EEC for ; Mon, 24 Sep 2018 10:16:55 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3C34C29EFE; Mon, 24 Sep 2018 10:16:55 +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 E61E929EEC for ; Mon, 24 Sep 2018 10:16:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728497AbeIXQSG (ORCPT ); Mon, 24 Sep 2018 12:18:06 -0400 Received: from aserp2120.oracle.com ([141.146.126.78]:36348 "EHLO aserp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725992AbeIXQSF (ORCPT ); Mon, 24 Sep 2018 12:18:05 -0400 Received: from pps.filterd (aserp2120.oracle.com [127.0.0.1]) by aserp2120.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w8OAEaKV107575; Mon, 24 Sep 2018 10:16:45 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=F60r6Tczj+ogQwpKIAraU4TpqthEWzpyIJIY8UiLCyE=; b=w+v1r/pED495cHnFEDIiVLUa1/vhNA0TeD+DzFj0wNXRr5kIXzsikZCwm+MSMDLqSPCr K0rPB+U6gfcpa+DeJncNuCdbjlnphZih9lR70AZw1EIhJCHjG2QSd59FY3I6cELExHmI E/K1VoPwZ36/dBxLLr+rzAKHKw3fMggpPAckb+J31FAt5BCc91YCrDStop+hN3EhafLs urXQ32QPxiv8a5Wryp0euSoNbZNaFqbos1EekPefOII6kViuL0dAKzKzx4P7XQ/5DHAt GETMIgSMLPW0e6WHT8aJc7CLOFkf/acvMd/+/RNPMMAZP/fATHevZOgC36eoU/5iGnKw rA== Received: from aserv0021.oracle.com (aserv0021.oracle.com [141.146.126.233]) by aserp2120.oracle.com with ESMTP id 2mndpp4rh3-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 24 Sep 2018 10:16:45 +0000 Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by aserv0021.oracle.com (8.14.4/8.14.4) with ESMTP id w8OAGiv2031164 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 24 Sep 2018 10:16:44 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 w8OAGi2V010074; Mon, 24 Sep 2018 10:16:44 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:43 -0700 From: Anand Jain To: fstests@vger.kernel.org Cc: linux-btrfs@vger.kernel.org Subject: [PATCH 2/9] generic/015 fix to test the default non-mixed mode Date: Mon, 24 Sep 2018 18:16:26 +0800 Message-Id: <1537784193-24431-3-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=999 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 commit 97575acd7495 (generic/015: Change the test filesystem size to 101mb), created 101mb FS instead of 100mb FS to make sure we create a FS which is non mixed mode, which is our default mode. btrfs-progs commit 18e2663db3e1 (btrfs-progs: Add minimum device size check) added a more accurate minimum required space to create the btrfs FS in non mixed mode. Which is at 14294784 bytes. So this patch changes the FS size to be created by _scratch_sized_mkfs to 200mb so that we create the FS in non mixed mode. To test mixed blockgroup its better we set it using the MKFS_OPTIONS explicitly. Signed-off-by: Anand Jain --- tests/generic/015 | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/tests/generic/015 b/tests/generic/015 index 0f4d29800f4f..14941ab6d552 100755 --- a/tests/generic/015 +++ b/tests/generic/015 @@ -37,11 +37,10 @@ _supported_os Linux _require_scratch _require_no_large_scratch_dev -# With filesystems less than 100mb btrfs is created in mixed mode -# which can lead to slight accounting errors of 1mb. Having the -# fs be at least 101 mb ensures those errors are within the error -# tolerance of 1% -_scratch_mkfs_sized `expr 101 \* 1024 \* 1024` >/dev/null 2>&1 \ +# With filesystems less than ~200mb _scratch_mkfs_sized will create +# data and metadata mixed mode btrfs, so use 200mb so that we test +# the default btrfs. +_scratch_mkfs_sized $((200 * 1024 * 1024)) >> $seqres.full 2>&1 \ || _fail "mkfs failed" _scratch_mount out=$SCRATCH_MNT/fillup.$$ From patchwork Mon Sep 24 10:16:27 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anand Jain X-Patchwork-Id: 10612189 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 D8AC7913 for ; Mon, 24 Sep 2018 10:16:52 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CA29529EFA for ; Mon, 24 Sep 2018 10:16:52 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BE37B29EFD; Mon, 24 Sep 2018 10:16:52 +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 6735F29EEC for ; Mon, 24 Sep 2018 10:16:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728669AbeIXQSL (ORCPT ); Mon, 24 Sep 2018 12:18:11 -0400 Received: from userp2120.oracle.com ([156.151.31.85]:36912 "EHLO userp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728482AbeIXQSG (ORCPT ); Mon, 24 Sep 2018 12:18:06 -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 w8OAEbh0053055; Mon, 24 Sep 2018 10:16:46 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=OuckUuLVRk2dulyFjZEQ8Vdtb99wlcMqbq316PrB8xU=; b=xMPfpBlkyOJSPME3TE4qosqnScdJGicsukeTjAnFUl3fkiJW34osdhp0uypCL+bqGSG0 6WPlH6E7PHaSs0YEKlDwR9YhKlcfTeDPZNAJ2vsHa/zFbNxRfZbPfhp/Dr0yFt0Jn7n+ pEK9wOvlYiIq1AFQPMej1bXpZG1F37GnZ9EQKzB0m9m1tb7rdFj5m4e9J9tPsujS3nto MKgCbd0ChNK//AFPuYT77bhnIT9QmNRSwNUoKQv8DWRIuAi6PTaJhqLekxG8hzZpur38 5eqKEYJR9Qds+XwIQAn9WtKpPnJvq9zasfttkW0DHlbDDDjTWbZYdRWmYRDzcOLQY1D0 qQ== Received: from userv0022.oracle.com (userv0022.oracle.com [156.151.31.74]) by userp2120.oracle.com with ESMTP id 2mnvtubfj4-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 24 Sep 2018 10:16:45 +0000 Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by userv0022.oracle.com (8.14.4/8.14.4) with ESMTP id w8OAGjV0020810 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 24 Sep 2018 10:16:45 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 w8OAGj08010084; Mon, 24 Sep 2018 10:16:45 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:45 -0700 From: Anand Jain To: fstests@vger.kernel.org Cc: linux-btrfs@vger.kernel.org Subject: [PATCH 3/9] geneirc/077 fix min size for btrfs Date: Mon, 24 Sep 2018 18:16:27 +0800 Message-Id: <1537784193-24431-4-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=588 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 If btrfs need to be tested at its default blockgroup which is non-mixed, then it needs at least ~200mb (upward round off to nearest 100'), instead of 50mb use 200mb to test this test case. Signed-off-by: Anand Jain --- tests/generic/077 | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/generic/077 b/tests/generic/077 index ef6af18c83e3..60c3493451c7 100755 --- a/tests/generic/077 +++ b/tests/generic/077 @@ -49,8 +49,7 @@ rm -f $seqres.full _scratch_unmount >/dev/null 2>&1 echo "*** MKFS ***" >>$seqres.full echo "" >>$seqres.full -SIZE=`expr 50 \* 1024 \* 1024` -_scratch_mkfs_sized $SIZE >>$seqres.full 2>&1 \ +_scratch_mkfs_sized $((200 * 1024 *1024)) >>$seqres.full 2>&1 \ || _fail "mkfs failed" _scratch_mount mkdir $SCRATCH_MNT/subdir From patchwork Mon Sep 24 10:16:28 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anand Jain X-Patchwork-Id: 10612183 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 ECC38157B for ; Mon, 24 Sep 2018 10:16:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DED6B29EEC for ; Mon, 24 Sep 2018 10:16:50 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D34AB29EFD; Mon, 24 Sep 2018 10:16:50 +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 8A04F29EEC for ; Mon, 24 Sep 2018 10:16:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728229AbeIXQSI (ORCPT ); Mon, 24 Sep 2018 12:18:08 -0400 Received: from aserp2120.oracle.com ([141.146.126.78]:36358 "EHLO aserp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728549AbeIXQSH (ORCPT ); Mon, 24 Sep 2018 12:18:07 -0400 Received: from pps.filterd (aserp2120.oracle.com [127.0.0.1]) by aserp2120.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w8OAEaHV107542; Mon, 24 Sep 2018 10:16:47 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=X38UfbmS3ilNx7HuItfeMTMFwnEajdxNatiZXF65wBk=; b=nV2+5t97M6QLNXMJRuxOFgb8QQ/kFmqNggekOU3a0sE6IZa37dpYQTbzUIqyHgdNaYz5 P9LBaFgiLj9VHdlWN7nL6Dcv186vEc0K16F/ZOhqys0TrAzllRffz1KEqlz+j84Wkukt qTc2KWtQpdXmnr8bptekXOsoJS3qseKeXSigopYep7lonP+GbalEniFdJoLEPksKKzPQ Gijwis0CoU48aOV/UpwDvUFJaUO6MYLbE10JbyxBEI8/9ufRksSvt+gvnvwHwhWbrb3+ odZYbzobwn66qp/0PSofKkw2ySmaIzFDouCbEw48i2kZ0UHFP4hR/qPQpguntzQ20qqd qA== Received: from aserv0021.oracle.com (aserv0021.oracle.com [141.146.126.233]) by aserp2120.oracle.com with ESMTP id 2mndpp4rh4-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 24 Sep 2018 10:16:47 +0000 Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by aserv0021.oracle.com (8.14.4/8.14.4) with ESMTP id w8OAGkn9031211 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 24 Sep 2018 10:16:46 GMT Received: from abhmp0001.oracle.com (abhmp0001.oracle.com [141.146.116.7]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id w8OAGkNW020234; Mon, 24 Sep 2018 10:16:46 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:46 -0700 From: Anand Jain To: fstests@vger.kernel.org Cc: linux-btrfs@vger.kernel.org Subject: [PATCH 4/9] generic/083 create at least 200mb fs Date: Mon, 24 Sep 2018 18:16:28 +0800 Message-Id: <1537784193-24431-5-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=784 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 btrfs needs at least ~200mb to create a FS with the defaults options, so instead of 100mb create 200mb sized fs. Signed-off-by: Anand Jain --- tests/generic/083 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/generic/083 b/tests/generic/083 index 63d96ba2ab88..e5f0a88ef221 100755 --- a/tests/generic/083 +++ b/tests/generic/083 @@ -71,7 +71,7 @@ workout() echo "*** test out-of-space handling for random write operations" -filesize=`expr 100 \* 1024 \* 1024` +filesize=`expr 200 \* 1024 \* 1024` agcount=6 numprocs=15 numops=1500 From patchwork Mon Sep 24 10:16:29 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anand Jain X-Patchwork-Id: 10612201 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 CE0CC1803 for ; Mon, 24 Sep 2018 10:16:56 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C01FD29EFA for ; Mon, 24 Sep 2018 10:16:56 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B4B6F29EFE; Mon, 24 Sep 2018 10:16:56 +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 6EEA429EFD for ; Mon, 24 Sep 2018 10:16:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728673AbeIXQSP (ORCPT ); Mon, 24 Sep 2018 12:18:15 -0400 Received: from aserp2120.oracle.com ([141.146.126.78]:36422 "EHLO aserp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727567AbeIXQSP (ORCPT ); Mon, 24 Sep 2018 12:18:15 -0400 Received: from pps.filterd (aserp2120.oracle.com [127.0.0.1]) by aserp2120.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w8OAEaPj107519; Mon, 24 Sep 2018 10:16:54 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=E7DK0NfmpZIvc220702QztuoADpce+CFfZj3mYpWZeI=; b=t+6aWuQ5MTiX1V2hyJbq6XqN9xqwIww2PafXN8zr4szyHlMcLJ92B9fwULD/dsplVPVv GhhYU2/KL4Ku9rf1sRHvpseJcDpWGTKkdHeJi82VMhR6Bp4pAigLMYxPPbp8UL2pyhG8 nnnkR6zpw1qB0j4a/g8FD/L8lVpTkTYe9RFSsdxeiEZGHFWRZpooZd6yln1OZSpbrrir 4OwOUgv6dIDyVP73uR+TpHZxaKUwOYer7Q+FLdJo2CFiJv+A3Uj01vXR5fR1t/OD0XrF T/my2wUEdKln6fdrlWLpi0LPpcAQAj+6dQkMi6FRZqvIe2s8+s9JxWQ1OtchL2kLELLy /Q== Received: from userv0022.oracle.com (userv0022.oracle.com [156.151.31.74]) by aserp2120.oracle.com with ESMTP id 2mndpp4rhb-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 24 Sep 2018 10:16:54 +0000 Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by userv0022.oracle.com (8.14.4/8.14.4) with ESMTP id w8OAGlRw020867 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 24 Sep 2018 10:16:48 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 w8OAGlJg032211; Mon, 24 Sep 2018 10:16:47 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:47 -0700 From: Anand Jain To: fstests@vger.kernel.org Cc: linux-btrfs@vger.kernel.org Subject: [PATCH 5/9] generic/102 open code dev_size _scratch_mkfs_sized() Date: Mon, 24 Sep 2018 18:16:29 +0800 Message-Id: <1537784193-24431-6-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=961 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 Open code helps to grep and find out parameter sent to the _scratch_mkfs_sized here. Signed-off-by: Anand Jain --- tests/generic/102 | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/generic/102 b/tests/generic/102 index faf940ac5070..aad496a5bc69 100755 --- a/tests/generic/102 +++ b/tests/generic/102 @@ -31,8 +31,7 @@ _require_scratch rm -f $seqres.full -dev_size=$((512 * 1024 * 1024)) # 512MB filesystem -_scratch_mkfs_sized $dev_size >>$seqres.full 2>&1 +_scratch_mkfs_sized $((512 * 1024 * 1024)) >>$seqres.full 2>&1 _scratch_mount for ((i = 0; i < 10; i++)); do 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 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" From patchwork Mon Sep 24 10:16:32 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anand Jain X-Patchwork-Id: 10612211 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 D98E4157B 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 CC1F129EEC for ; Mon, 24 Sep 2018 10:17:01 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C088B29EFE; 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 7677C29EEC for ; Mon, 24 Sep 2018 10:17:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728680AbeIXQST (ORCPT ); Mon, 24 Sep 2018 12:18:19 -0400 Received: from aserp2120.oracle.com ([141.146.126.78]:36470 "EHLO aserp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728676AbeIXQSS (ORCPT ); Mon, 24 Sep 2018 12:18:18 -0400 Received: from pps.filterd (aserp2120.oracle.com [127.0.0.1]) by aserp2120.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w8OAEaPk107519; Mon, 24 Sep 2018 10:16:58 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=JQumnnmnH8tTHHK8tgTdg+qtw5enTrqzJY4pVzHk+4c=; b=DcmAtMlBP3Y7tdY17fDNuMoIhOB8sL+tjeX2jpWZlFEmxYyX9n6UZTMofyC2fgAKxyqw Mk1v56mpvVNdRMzhUdrMMRAW2txLKm3OnUIJnRzFPdJEpLkX9B1SNmWHOaSxK1P3tbkN j8tnOzUb5aoirMwRH8yjOF/9TKERgcXWHuhOJ4lgrQStdOh4VxoALyAmtqRTspXRveZT OF8E+fdgrwoGtPHryu14d8eQuV3+BG/uudMFs5exo41gTVYugPWXCnNzpz1bzdEr6vQf jKbtug4SzpXl4IcI+wPhAIXdGJMS94rXfJUZDr6a2DAhJ/JkPgHnTcAiK/SRgm7/HKAs TA== Received: from userv0021.oracle.com (userv0021.oracle.com [156.151.31.71]) by aserp2120.oracle.com with ESMTP id 2mndpp4rhh-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 24 Sep 2018 10:16:58 +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 w8OAGp0m017644 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 24 Sep 2018 10:16:52 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 w8OAGpNt032227; Mon, 24 Sep 2018 10:16:51 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:51 -0700 From: Anand Jain To: fstests@vger.kernel.org Cc: linux-btrfs@vger.kernel.org Subject: [PATCH 8/9] generic/449 fix fs size for _scratch_mkfs_sized for btrfs Date: Mon, 24 Sep 2018 18:16:32 +0800 Message-Id: <1537784193-24431-9-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=927 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 btrfs needs ~200m to create btrfs with default options like non mixed block groups. Signed-off-by: Anand Jain --- tests/generic/449 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/generic/449 b/tests/generic/449 index 88f918654b54..47c219222dde 100755 --- a/tests/generic/449 +++ b/tests/generic/449 @@ -41,7 +41,7 @@ _require_test _require_acls _require_attrs -_scratch_mkfs_sized $((50 * 1024 * 1024)) >> $seqres.full 2>&1 +_scratch_mkfs_sized $((200 * 1024 * 1024)) >> $seqres.full 2>&1 _scratch_mount || _fail "mount failed" TFILE=$SCRATCH_MNT/testfile.$seq @@ -52,7 +52,7 @@ chmod u+rwx $TFILE chmod go-rwx $TFILE # Try to run out of space so setfacl will fail -$XFS_IO_PROG -c "pwrite 0 50m" $TFILE >>$seqres.full 2>&1 +$XFS_IO_PROG -c "pwrite 0 200m" $TFILE >>$seqres.full 2>&1 i=1 # Setting acls on an xfs filesystem will succeed even after running out of From patchwork Mon Sep 24 10:16:33 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anand Jain X-Patchwork-Id: 10612205 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 C65D4157B for ; Mon, 24 Sep 2018 10:16:58 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B8CDD29EEC for ; Mon, 24 Sep 2018 10:16:58 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AD3DC29EFD; Mon, 24 Sep 2018 10:16:58 +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 6BE8A29EEC for ; Mon, 24 Sep 2018 10:16:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728078AbeIXQSP (ORCPT ); Mon, 24 Sep 2018 12:18:15 -0400 Received: from userp2120.oracle.com ([156.151.31.85]:37014 "EHLO userp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728482AbeIXQSO (ORCPT ); Mon, 24 Sep 2018 12:18:14 -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 w8OAEbSo053059; Mon, 24 Sep 2018 10:16:54 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=fWFhUh+ZDBDWiUlDIZxbBAzFnCS69NrGGBmE5sd7QrQ=; b=RQOkjVyxjZUMAkG7N56R+FSnEc5PioSdD6LGu54AWxz+447JoXpOidj+NY3KbznJA9Iq qaLkzpaAeOTNVhC3YumnWLdivvsnJMF4LU6kuP0k8bmmK2LSOAeuUxpqA+7aHecFVtYt 7S/hdV4mas1vk1XMTmJFkaa0xsK/WpAW6Zos1smcty08oVHUlPP4PMCBBtkVqrTAnzmJ zVx6Hs9iTpCfoY6JJ91IktFJjFG/xJmb+iFTIhQMnzqDs2L1y/hFwzPUiLnI3FPnAOkC byCFpSxvx/bNzErxtTHmO27mg/uY40skHojZxk9dyLYOdOJ/wJ7K5xISURETlW04pbjc fg== Received: from aserv0022.oracle.com (aserv0022.oracle.com [141.146.126.234]) by userp2120.oracle.com with ESMTP id 2mnvtubfjp-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 24 Sep 2018 10:16:53 +0000 Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by aserv0022.oracle.com (8.14.4/8.14.4) with ESMTP id w8OAGrTN032496 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 24 Sep 2018 10:16:53 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 w8OAGruI032240; Mon, 24 Sep 2018 10:16:53 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:52 -0700 From: Anand Jain To: fstests@vger.kernel.org Cc: linux-btrfs@vger.kernel.org Subject: [PATCH 9/9] generic/387 fix _scratch_mkfs_sized option for btrfs Date: Mon, 24 Sep 2018 18:16:33 +0800 Message-Id: <1537784193-24431-10-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=860 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 btrfs needs 200mb to create a fs with default block group which is non mixed, so pass 200mb to _scratch_mkfs_sized(). Signed-off-by: Anand Jain --- tests/generic/387 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/generic/387 b/tests/generic/387 index 68a48012faa5..9d9d65d222c8 100755 --- a/tests/generic/387 +++ b/tests/generic/387 @@ -35,7 +35,8 @@ _supported_fs generic _supported_os Linux _require_scratch_reflink -_scratch_mkfs_sized $((32 * 1024 * 1024)) >> $seqres.full 2>&1 +#btrfs needs ~200mb to create default blockgroup fs +_scratch_mkfs_sized $((200 * 1024 * 1024)) >> $seqres.full 2>&1 _scratch_mount testfile=$SCRATCH_MNT/testfile