From patchwork Tue Sep 25 04:24:14 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anand Jain X-Patchwork-Id: 10613311 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 A0B88913 for ; Tue, 25 Sep 2018 04:24:34 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 92BBB29A6F for ; Tue, 25 Sep 2018 04:24:34 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8749129A77; Tue, 25 Sep 2018 04:24:34 +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 3EED629A6F for ; Tue, 25 Sep 2018 04:24:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727588AbeIYKaJ (ORCPT ); Tue, 25 Sep 2018 06:30:09 -0400 Received: from userp2130.oracle.com ([156.151.31.86]:51016 "EHLO userp2130.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727504AbeIYKaI (ORCPT ); Tue, 25 Sep 2018 06:30:08 -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 w8P4OWvt178472; Tue, 25 Sep 2018 04:24:32 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=kR++40L9NjSSxQrBfXvUjFTb/oMiDm5LsUGeqvmYtxM=; b=G9DCFinAgWcf9Qxi2qtSGOQcb4NjjPga0eciKretW2litMEi4JyU7FgwYU7ehD+6FaV+ 0L1ZIikdS6nOYDr1yxxF1hn0IEX+73keVQ1HeNh0SieO6nj3qv76mfrvKwxHBVjgKfyV NqjnvVfdcrR0G4Xnjcdp551UOrh/K2UcdjuwTck7gX/WOJY9dRVo+soQnpq6xsI3TrDk mdWIi2FcykDgFkRvEA3RzDxqFqtY45BNPPUMhslgFqO/P0Y8QFSRL7gjfUowb4ulrOfl Tts3cHu0ti70c0+TQFwkd1YBBD4lve3XnjBF3Bni11YtArcbjJHTKxQ70/DsMtxQae3Q Vw== Received: from userv0022.oracle.com (userv0022.oracle.com [156.151.31.74]) by userp2130.oracle.com with ESMTP id 2mnd5t9g9y-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 25 Sep 2018 04:24:32 +0000 Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by userv0022.oracle.com (8.14.4/8.14.4) with ESMTP id w8P4OVKZ008723 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 25 Sep 2018 04:24:31 GMT Received: from abhmp0009.oracle.com (abhmp0009.oracle.com [141.146.116.15]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id w8P4OVD8005505; Tue, 25 Sep 2018 04:24:31 GMT Received: from tpasj.sg.oracle.com (/10.186.50.4) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 24 Sep 2018 21:24:31 -0700 From: Anand Jain To: fstests@vger.kernel.org Cc: linux-btrfs@vger.kernel.org Subject: [PATCH v2 1/9] fstests: btrfs: _scratch_mkfs_sized fix min size without mixed option Date: Tue, 25 Sep 2018 12:24:14 +0800 Message-Id: <1537849462-619-2-git-send-email-anand.jain@oracle.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1537849462-619-1-git-send-email-anand.jain@oracle.com> References: <1537849462-619-1-git-send-email-anand.jain@oracle.com> X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9026 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=691 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1807170000 definitions=main-1809250044 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() checks if the requested size is below 1G and forces the --mixed option for the mkfs.btrfs. Well the correct size considering all possible group profiles at which we need to force the mixed option is roughly 256Mbytes. So fix that. Signed-off-by: Anand Jain --- common/rc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/common/rc b/common/rc index d5bb1feee2c3..90dc3002bc3d 100644 --- a/common/rc +++ b/common/rc @@ -969,7 +969,10 @@ _scratch_mkfs_sized() ;; btrfs) local mixed_opt= - (( fssize <= 1024 * 1024 * 1024 )) && mixed_opt='--mixed' + # minimum size that's needed without the mixed option. + # Ref: btrfs-prog: btrfs_min_dev_size() + # Non mixed mode is also the default option. + (( fssize < $((256 * 1024 *1024)) )) && mixed_opt='--mixed' $MKFS_BTRFS_PROG $MKFS_OPTIONS $mixed_opt -b $fssize $SCRATCH_DEV ;; jfs) From patchwork Tue Sep 25 04:24:15 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anand Jain X-Patchwork-Id: 10613321 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 30163913 for ; Tue, 25 Sep 2018 04:24:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 21FDD29A6F for ; Tue, 25 Sep 2018 04:24:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1506F29A7C; Tue, 25 Sep 2018 04:24:38 +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 B69A729A6F for ; Tue, 25 Sep 2018 04:24:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727870AbeIYKaK (ORCPT ); Tue, 25 Sep 2018 06:30:10 -0400 Received: from userp2130.oracle.com ([156.151.31.86]:51046 "EHLO userp2130.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727504AbeIYKaK (ORCPT ); Tue, 25 Sep 2018 06:30:10 -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 w8P4O7CD178129; Tue, 25 Sep 2018 04:24:34 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=uxQgFQn2TkDZGhZNcnOohtXcUrVFeHkVKH6RcsZO/mc=; b=rySkgBeRMZd9XKx0SylPUNl1uv3bTp/g2kZs82bOZPyZQHqCSaWN3NVyhR/Zsl7Cf5/+ uaGUTJJWRSPqXy1xSQNd/9EREgSWU5bQJ/yKuHePEv6urbwt6bb27mV5Jv8gVx69Ws7X qFBIdJC9cmw8C3caTE4K7KUPodPvaKPwZORpkAePMBLcNwhWxF+ic+YKUUED6O0JrGJZ mSkboLk7DlDjAlERpn2dtdLnS7oSmKsuGptZEEFBSapA74j36NOxiUIn617j1xjtIuG5 /pfS3Za70sByXctOAZjw1JnZj2TIwepxOQ6ex8eZEtld71CFOd+f0/WmPgqxpMckMA1x kA== Received: from aserv0022.oracle.com (aserv0022.oracle.com [141.146.126.234]) by userp2130.oracle.com with ESMTP id 2mnd5t9ga3-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 25 Sep 2018 04:24:34 +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 w8P4OXIG026823 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 25 Sep 2018 04:24:33 GMT Received: from abhmp0009.oracle.com (abhmp0009.oracle.com [141.146.116.15]) by userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id w8P4OWiX028268; Tue, 25 Sep 2018 04:24:32 GMT Received: from tpasj.sg.oracle.com (/10.186.50.4) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 24 Sep 2018 21:24:32 -0700 From: Anand Jain To: fstests@vger.kernel.org Cc: linux-btrfs@vger.kernel.org Subject: [PATCH v2 2/9] generic/015 fix to test the default non-mixed mode Date: Tue, 25 Sep 2018 12:24:15 +0800 Message-Id: <1537849462-619-3-git-send-email-anand.jain@oracle.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1537849462-619-1-git-send-email-anand.jain@oracle.com> References: <1537849462-619-1-git-send-email-anand.jain@oracle.com> X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9026 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=938 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1807170000 definitions=main-1809250044 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. 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 depending on the group profile, and considering any group profiles we would need at least 256MB (with upward round off). So this patch changes the FS size to be created by _scratch_sized_mkfs() to 256MB so that we create the FS in non mixed mode for any group profile. Mixed blockgroup can be tested using the MKFS_OPTIONS explicitly. Signed-off-by: Anand Jain --- tests/generic/015 | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/tests/generic/015 b/tests/generic/015 index 0f4d29800f4f..e6c8d7c37c07 100755 --- a/tests/generic/015 +++ b/tests/generic/015 @@ -37,11 +37,9 @@ _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 \ +# btrfs needs at least 256MB (with upward round off) to create a non-mixed mode +# fs. Ref: btrfs-progs: btrfs_min_dev_size() +_scratch_mkfs_sized $((256 * 1024 * 1024)) >> $seqres.full 2>&1 \ || _fail "mkfs failed" _scratch_mount out=$SCRATCH_MNT/fillup.$$ From patchwork Tue Sep 25 04:24:16 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anand Jain X-Patchwork-Id: 10613317 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 2BEA615A6 for ; Tue, 25 Sep 2018 04:24:37 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1D78A29A6F for ; Tue, 25 Sep 2018 04:24:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 11A4C29A72; Tue, 25 Sep 2018 04:24:37 +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 ACD2829A72 for ; Tue, 25 Sep 2018 04:24:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728084AbeIYKaL (ORCPT ); Tue, 25 Sep 2018 06:30:11 -0400 Received: from userp2120.oracle.com ([156.151.31.85]:49764 "EHLO userp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727823AbeIYKaK (ORCPT ); Tue, 25 Sep 2018 06:30: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 w8P4OMue141631; Tue, 25 Sep 2018 04:24:34 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=zLvvsTn7P2u8ITXNQZiSPljb5MaCk2X81j3EpFEqQ3g=; b=EtTjbhA5plNIKN3YgfyTgKFtx8s44ZIpMoAvuJn4jzBgO53opMAlx/bkoCCpGHAh05pJ qRxdyZS3qCbvR0LR3gOn6r8a8DF8/B+JEhNh16Wsa0aGvIpeJG7B7NXBDr/neKmtDadc af6Q//LEgiwCnALoHAWEMCBdzr3s4Yjio1YtJMwxtWtQZttaYNMPcgAILCSosYNfpkui 3o+lz+ZDaUiW2btuVnNf+eSGPS9YLaxfklVqK76MzBptagLvN/uwOsoMRv3kKSYLlNZF ahYyAO6osQpBPXHfoQ+9uXr3Nf4q6+uv6fBOS2Qra99oPG9yO1B0eKUMK5iuzjkd527o KA== Received: from userv0022.oracle.com (userv0022.oracle.com [156.151.31.74]) by userp2120.oracle.com with ESMTP id 2mnvtug69x-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 25 Sep 2018 04:24:34 +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 w8P4OYBd008822 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 25 Sep 2018 04:24:34 GMT Received: from abhmp0009.oracle.com (abhmp0009.oracle.com [141.146.116.15]) by userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id w8P4OY4t028279; Tue, 25 Sep 2018 04:24:34 GMT Received: from tpasj.sg.oracle.com (/10.186.50.4) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 24 Sep 2018 21:24:33 -0700 From: Anand Jain To: fstests@vger.kernel.org Cc: linux-btrfs@vger.kernel.org Subject: [PATCH v2 3/9] geneirc/077 fix min size for btrfs Date: Tue, 25 Sep 2018 12:24:16 +0800 Message-Id: <1537849462-619-4-git-send-email-anand.jain@oracle.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1537849462-619-1-git-send-email-anand.jain@oracle.com> References: <1537849462-619-1-git-send-email-anand.jain@oracle.com> X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9026 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=586 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1807170000 definitions=main-1809250044 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 256mb. 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..ec236992513f 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 $((256 * 1024 *1024)) >>$seqres.full 2>&1 \ || _fail "mkfs failed" _scratch_mount mkdir $SCRATCH_MNT/subdir From patchwork Tue Sep 25 04:24:17 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anand Jain X-Patchwork-Id: 10613323 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 4DA1C15A6 for ; Tue, 25 Sep 2018 04:24:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 415C729A72 for ; Tue, 25 Sep 2018 04:24:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 35C1D29A6F; Tue, 25 Sep 2018 04:24:38 +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 D750929A72 for ; Tue, 25 Sep 2018 04:24:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728085AbeIYKaM (ORCPT ); Tue, 25 Sep 2018 06:30:12 -0400 Received: from userp2120.oracle.com ([156.151.31.85]:49800 "EHLO userp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727823AbeIYKaM (ORCPT ); Tue, 25 Sep 2018 06:30:12 -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 w8P4OMVN141634; Tue, 25 Sep 2018 04:24:36 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=xY2Mf6dcjgWkOXPilKSInobGp+v84EsGleNup4N49hY=; b=ebpHZnxh/zFPipfwKje5s5uyTYKm0Ii1L85AXHAXg01tJw717OO54e2wja21UQQcirG6 LL20VOZRZFSBQd0tAOm/cSXC0cd9A7hKZSTQKrKBnH4HeNSo+xf7oJi56PqcndsjFOC7 au/ubZBWqCwiUesPcEg2OPHdhN5lz/vQwTdiejBahVQ+8tFNiVV+212oUMrg/ABmbMYd XzNnysDsaKtZ5sC4qeFxUPpbiBOuisz1XE3j4zoXaa30nT3KVtwjgyKiPgdkMqrqD1Hc Koxb5aZeN0SAnv9rwbWsd8/Ysa9qjVL91Icy1jXBYlh6zW1iZBJQaocQiGRrtS9HuMy7 RQ== Received: from aserv0022.oracle.com (aserv0022.oracle.com [141.146.126.234]) by userp2120.oracle.com with ESMTP id 2mnvtug6a1-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 25 Sep 2018 04:24:36 +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 w8P4OZe3026944 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 25 Sep 2018 04:24:35 GMT Received: from abhmp0009.oracle.com (abhmp0009.oracle.com [141.146.116.15]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id w8P4OZ7N015645; Tue, 25 Sep 2018 04:24:35 GMT Received: from tpasj.sg.oracle.com (/10.186.50.4) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 24 Sep 2018 21:24:34 -0700 From: Anand Jain To: fstests@vger.kernel.org Cc: linux-btrfs@vger.kernel.org Subject: [PATCH v2 4/9] generic/083 fix btrfs fs size for default mode Date: Tue, 25 Sep 2018 12:24:17 +0800 Message-Id: <1537849462-619-5-git-send-email-anand.jain@oracle.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1537849462-619-1-git-send-email-anand.jain@oracle.com> References: <1537849462-619-1-git-send-email-anand.jain@oracle.com> X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9026 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=745 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1807170000 definitions=main-1809250044 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 256mb to create a FS with the defaults options. 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..eabff02a36eb 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 256 \* 1024 \* 1024` agcount=6 numprocs=15 numops=1500 From patchwork Tue Sep 25 04:24:18 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anand Jain X-Patchwork-Id: 10613327 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 6D32C14DA for ; Tue, 25 Sep 2018 04:24:40 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5F6C829A6F for ; Tue, 25 Sep 2018 04:24:40 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5406829A7C; Tue, 25 Sep 2018 04:24:40 +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 44D1129A6F for ; Tue, 25 Sep 2018 04:24:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728164AbeIYKaO (ORCPT ); Tue, 25 Sep 2018 06:30:14 -0400 Received: from userp2120.oracle.com ([156.151.31.85]:49816 "EHLO userp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727823AbeIYKaO (ORCPT ); Tue, 25 Sep 2018 06:30: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 w8P4O98k141599; Tue, 25 Sep 2018 04:24:37 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=1kM3UXHRTsnulQT25BkEIFMz94pDVhlHz8VIX/s3aYfYGh5JFXqV2MTppkgUTAIJmvSG xSIRtBJtw/Yeueita/F5Hc78AO28fMYLSNYn89aLuth9ZS/3akWuuKLpiq4VUFBk0Jzm tK3rp9Su3E2hZer7oQ+DJ/P/dRIMr8TfqfJNVZHjKZ4qrOtaAtCUuY4EjxzVserGj64A PoxDszZPIpJfjZ5hZrK65dihuuJiNwm+w00ay+TnwOb6OB5es9xPQEcRvZ8JWrP+f9r8 tbm/wP4W9GdesdOqCWeSpip1NqZay5K+2zMha+XyGqZmM61IFgnvTfoES6B4EILCcg5P fQ== Received: from aserv0022.oracle.com (aserv0022.oracle.com [141.146.126.234]) by userp2120.oracle.com with ESMTP id 2mnvtug6a2-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 25 Sep 2018 04:24:37 +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 w8P4OaGV026990 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 25 Sep 2018 04:24:36 GMT Received: from abhmp0009.oracle.com (abhmp0009.oracle.com [141.146.116.15]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id w8P4OaOP015648; Tue, 25 Sep 2018 04:24:36 GMT Received: from tpasj.sg.oracle.com (/10.186.50.4) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 24 Sep 2018 21:24:36 -0700 From: Anand Jain To: fstests@vger.kernel.org Cc: linux-btrfs@vger.kernel.org Subject: [PATCH v2 5/9] generic/102 open code dev_size _scratch_mkfs_sized() Date: Tue, 25 Sep 2018 12:24:18 +0800 Message-Id: <1537849462-619-6-git-send-email-anand.jain@oracle.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1537849462-619-1-git-send-email-anand.jain@oracle.com> References: <1537849462-619-1-git-send-email-anand.jain@oracle.com> X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9026 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-1809250044 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 Tue Sep 25 04:24:19 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anand Jain X-Patchwork-Id: 10613343 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 68E4B913 for ; Tue, 25 Sep 2018 04:24:46 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5B51329A72 for ; Tue, 25 Sep 2018 04:24:46 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4FE6229A77; Tue, 25 Sep 2018 04:24: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=-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 0850329A6F for ; Tue, 25 Sep 2018 04:24:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728225AbeIYKaV (ORCPT ); Tue, 25 Sep 2018 06:30:21 -0400 Received: from userp2120.oracle.com ([156.151.31.85]:49870 "EHLO userp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728266AbeIYKaU (ORCPT ); Tue, 25 Sep 2018 06:30:20 -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 w8P4O7ho141579; Tue, 25 Sep 2018 04:24: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=HIlr8p2L3uvGDFsu8ez44dI/wbPW4cQpocYHGQo9wRY=; b=ambvpHCfLrckq2piSIfomcj/GIONJuJ/UW69EbTAXFiIKkNSlbC1z9KiBXFJJ7iE/QZN fOJQLY2vUqLHtE0kqSTCylAMR/zfH+hXPRfWBh4h1BkIcHy4aaF1Itv8YAtmjBeUSuD6 AwZmSyNyt+yHKlFXqi3wvkHTaxAb8GARNukiczLSIbCTrqu3WfSGedGIr9RBrjii/6o6 lySjcyukRTCt/uy/0eJa6o0HMXIE2SfYJtV0+G/ocbgPOyo8q4UKceS37lVfEz64qNfc kgcm0ysqmDO9LvEsOG1wP89oYqmDVPHSATUXSgnEeHrtcsHhsUCju/ICqI8EMcv+/pw3 mg== Received: from aserv0021.oracle.com (aserv0021.oracle.com [141.146.126.233]) by userp2120.oracle.com with ESMTP id 2mnvtug6a8-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 25 Sep 2018 04:24:44 +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 w8P4Ocob011383 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 25 Sep 2018 04:24:38 GMT Received: from abhmp0009.oracle.com (abhmp0009.oracle.com [141.146.116.15]) by userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id w8P4ObdA028301; Tue, 25 Sep 2018 04:24:37 GMT Received: from tpasj.sg.oracle.com (/10.186.50.4) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 24 Sep 2018 21:24:37 -0700 From: Anand Jain To: fstests@vger.kernel.org Cc: linux-btrfs@vger.kernel.org Subject: [PATCH v2 6/9] generic/204 open code SIZE for _scratch_mkfs_sized() Date: Tue, 25 Sep 2018 12:24:19 +0800 Message-Id: <1537849462-619-7-git-send-email-anand.jain@oracle.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1537849462-619-1-git-send-email-anand.jain@oracle.com> References: <1537849462-619-1-git-send-email-anand.jain@oracle.com> X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9026 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-1809250044 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 Tue Sep 25 04:24:20 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anand Jain X-Patchwork-Id: 10613331 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 A5822112B for ; Tue, 25 Sep 2018 04:24:42 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9835C29A6F for ; Tue, 25 Sep 2018 04:24:42 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8CE8A29A77; Tue, 25 Sep 2018 04:24:42 +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 3DE2329A6F for ; Tue, 25 Sep 2018 04:24:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728196AbeIYKaR (ORCPT ); Tue, 25 Sep 2018 06:30:17 -0400 Received: from aserp2120.oracle.com ([141.146.126.78]:54960 "EHLO aserp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727823AbeIYKaR (ORCPT ); Tue, 25 Sep 2018 06:30:17 -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 w8P4Oe3W194265; Tue, 25 Sep 2018 04:24:40 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=Yw/K6WDKf4/Dy1SDSsJO7ALOsemc/fahMGAARsJc0MNFGKjN4r3Ys1awN4Gg2R9GtoOG N0m3ZRm234FUhWOiTcKhl95hzXEzhG4Zq6omy4D2h3Fv+Zug2nZ+uHMJJ/WQcMwfE90X kuRrT12QyXIB3xQCCjSlaxVwtnosEccj+TgDCh9DXghh98sUZAmNor4H/qFN7w61saeU RaCaS+GBPBsWR3MALrbMP/Ahmwxq/lV4uFSMYmWJb/ksGCPkLKMVyNp8jS4BEWKHWPgL /u/LzDBok96WVtTDzgrGacmFz76yvgPPTO1RP5iozhkeXxInZf1cVqokuL5pq4qdmfD/ WQ== Received: from aserv0021.oracle.com (aserv0021.oracle.com [141.146.126.233]) by aserp2120.oracle.com with ESMTP id 2mndpp9euh-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 25 Sep 2018 04:24:40 +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 w8P4OdVu011437 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 25 Sep 2018 04:24:39 GMT Received: from abhmp0009.oracle.com (abhmp0009.oracle.com [141.146.116.15]) by userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id w8P4OdGG028315; Tue, 25 Sep 2018 04:24:39 GMT Received: from tpasj.sg.oracle.com (/10.186.50.4) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 24 Sep 2018 21:24:38 -0700 From: Anand Jain To: fstests@vger.kernel.org Cc: linux-btrfs@vger.kernel.org Subject: [PATCH v2 7/9] generic/312 open code fs_size _scratch_mkfs_sized() Date: Tue, 25 Sep 2018 12:24:20 +0800 Message-Id: <1537849462-619-8-git-send-email-anand.jain@oracle.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1537849462-619-1-git-send-email-anand.jain@oracle.com> References: <1537849462-619-1-git-send-email-anand.jain@oracle.com> X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9026 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-1809250044 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 Tue Sep 25 04:24:21 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anand Jain X-Patchwork-Id: 10613335 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 D12B8913 for ; Tue, 25 Sep 2018 04:24:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C2D9A29A6F for ; Tue, 25 Sep 2018 04:24:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B759C29A77; Tue, 25 Sep 2018 04:24:43 +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 6ECBE29A6F for ; Tue, 25 Sep 2018 04:24:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728238AbeIYKaS (ORCPT ); Tue, 25 Sep 2018 06:30:18 -0400 Received: from aserp2120.oracle.com ([141.146.126.78]:54982 "EHLO aserp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727823AbeIYKaS (ORCPT ); Tue, 25 Sep 2018 06:30: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 w8P4Oash194257; Tue, 25 Sep 2018 04:24:41 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=iSOQ/bWr3qVWygCVY8/Muk+6+hefbJG9+kQYx663tIM=; b=dAn/OGlQ8zHMACNj9EamAAXIcG27Ym5fIRx7k3Vd/z3dCG2V8CrWBu1TftItDdNIMs6K g8C/cptbdDRyo6KivrEARYAmyI6TJbLWPBX9M3inO1FWrfCDpPk4aECvgyaV16TtGjQs ReGS1D4id22Y3r6Lh7PAtGxvYMJ09yLhaL2iTxYYLe6jpFr2nNZdpw2iIKR+MgFzRytu dW5fy3niVmX1dtzsde0CzcRdXlQqYSzJijX4474TQT4Nm4VCLxIgIg141/fmfAFaXotj saaw2TnCu7HpZocStMfuy8MVu1JV/7n3er+TYzZv32XnNr9JmkG9XBPDX93vQ7FozSx+ aw== Received: from userv0021.oracle.com (userv0021.oracle.com [156.151.31.71]) by aserp2120.oracle.com with ESMTP id 2mndpp9euk-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 25 Sep 2018 04:24:41 +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 w8P4OejX010295 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 25 Sep 2018 04:24:40 GMT Received: from abhmp0009.oracle.com (abhmp0009.oracle.com [141.146.116.15]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id w8P4Oec6015664; Tue, 25 Sep 2018 04:24:40 GMT Received: from tpasj.sg.oracle.com (/10.186.50.4) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 24 Sep 2018 21:24:40 -0700 From: Anand Jain To: fstests@vger.kernel.org Cc: linux-btrfs@vger.kernel.org Subject: [PATCH v2 8/9] generic/449 fix fs size for _scratch_mkfs_sized for btrfs Date: Tue, 25 Sep 2018 12:24:21 +0800 Message-Id: <1537849462-619-9-git-send-email-anand.jain@oracle.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1537849462-619-1-git-send-email-anand.jain@oracle.com> References: <1537849462-619-1-git-send-email-anand.jain@oracle.com> X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9026 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=928 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1807170000 definitions=main-1809250044 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 256m 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..21b920bf6a50 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 $((256 * 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 256m" $TFILE >>$seqres.full 2>&1 i=1 # Setting acls on an xfs filesystem will succeed even after running out of From patchwork Tue Sep 25 04:24:22 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anand Jain X-Patchwork-Id: 10613339 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 476E7112B for ; Tue, 25 Sep 2018 04:24:45 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3A1FC29A6F for ; Tue, 25 Sep 2018 04:24:45 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2EA6C29A77; Tue, 25 Sep 2018 04:24:45 +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 CC49329A6F for ; Tue, 25 Sep 2018 04:24:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727823AbeIYKaT (ORCPT ); Tue, 25 Sep 2018 06:30:19 -0400 Received: from userp2130.oracle.com ([156.151.31.86]:51150 "EHLO userp2130.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728225AbeIYKaT (ORCPT ); Tue, 25 Sep 2018 06:30:19 -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 w8P4OJhr178181; Tue, 25 Sep 2018 04:24:42 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=GkdYuiLlrR8w6l4DajSznw0ayiIoWyESfPMZY92FGvw=; b=UTJyJVfSHDm3nD4spkjuVipKsvscrF15VAlaiDI76OaYCcMG3ErcgtXtciuDxNuOcX6o iavJrY4ru/ALtMCOPSQRKH8IopQWUZULCr7Zom8ez5YxahOAShd7ihR8nSMuQ/xUe4FG 34H+s/ZyS+rh0MKKL3YDlehr3BJ0SeMxOgKmeSWxi3fwgGhU+qV4LiAUmyhbWq83s+Qb fZ0V2wooWJM41hT5oam8O8qI72nXZl+9WyiCx0viVWcTtOu4O7HxW9b9+7HZGA7y4m1I WPm8w5NaCXqSjyOxrsqUlWQUbHdoYHbFI3iZrm3yTevAaf5OZegT/WiEgAnbaN/DvdLv wA== Received: from aserv0022.oracle.com (aserv0022.oracle.com [141.146.126.234]) by userp2130.oracle.com with ESMTP id 2mnd5t9gah-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 25 Sep 2018 04:24:42 +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 w8P4OftX027240 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 25 Sep 2018 04:24:41 GMT Received: from abhmp0009.oracle.com (abhmp0009.oracle.com [141.146.116.15]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id w8P4OfQZ015671; Tue, 25 Sep 2018 04:24:41 GMT Received: from tpasj.sg.oracle.com (/10.186.50.4) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 24 Sep 2018 21:24:41 -0700 From: Anand Jain To: fstests@vger.kernel.org Cc: linux-btrfs@vger.kernel.org Subject: [PATCH v2 9/9] generic/387 fix _scratch_mkfs_sized option for btrfs Date: Tue, 25 Sep 2018 12:24:22 +0800 Message-Id: <1537849462-619-10-git-send-email-anand.jain@oracle.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1537849462-619-1-git-send-email-anand.jain@oracle.com> References: <1537849462-619-1-git-send-email-anand.jain@oracle.com> X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9026 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=861 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1807170000 definitions=main-1809250044 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 256mb to create a fs with default block group which is non mixed, so pass 256mb 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..54a782bba3bc 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 256mb to create default blockgroup fs +_scratch_mkfs_sized $((256 * 1024 * 1024)) >> $seqres.full 2>&1 _scratch_mount testfile=$SCRATCH_MNT/testfile