From patchwork Thu Dec 3 10:08:36 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhaolei X-Patchwork-Id: 7758021 Return-Path: X-Original-To: patchwork-linux-btrfs@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 2A9E6BEEE1 for ; Thu, 3 Dec 2015 10:10:54 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 5591D2054C for ; Thu, 3 Dec 2015 10:10:53 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 85C502051C for ; Thu, 3 Dec 2015 10:10:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759539AbbLCKKs (ORCPT ); Thu, 3 Dec 2015 05:10:48 -0500 Received: from cn.fujitsu.com ([59.151.112.132]:34756 "EHLO heian.cn.fujitsu.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1759489AbbLCKKp (ORCPT ); Thu, 3 Dec 2015 05:10:45 -0500 X-IronPort-AV: E=Sophos;i="5.20,346,1444665600"; d="scan'208";a="1148087" Received: from unknown (HELO cn.fujitsu.com) ([10.167.33.5]) by heian.cn.fujitsu.com with ESMTP; 03 Dec 2015 18:10:29 +0800 Received: from G08CNEXCHPEKD01.g08.fujitsu.local (unknown [10.167.33.80]) by cn.fujitsu.com (Postfix) with ESMTP id B4BA640427E3; Thu, 3 Dec 2015 18:10:25 +0800 (CST) Received: from localhost.localdomain (10.167.226.114) by G08CNEXCHPEKD01.g08.fujitsu.local (10.167.33.89) with Microsoft SMTP Server id 14.3.181.6; Thu, 3 Dec 2015 18:10:25 +0800 From: Zhaolei To: CC: , Zhao Lei Subject: [PATCH] fstests: Fix generic/102 fail for btrfs Date: Thu, 3 Dec 2015 18:08:36 +0800 Message-ID: <56d7fca5e2f5dadceb4a3ec3d4589fec54da8d3b.1449137276.git.zhaolei@cn.fujitsu.com> X-Mailer: git-send-email 1.8.5.1 MIME-Version: 1.0 X-yoursite-MailScanner-Information: Please contact the ISP for more information X-yoursite-MailScanner-ID: B4BA640427E3.A5663 X-yoursite-MailScanner: Found to be clean X-yoursite-MailScanner-From: zhaolei@cn.fujitsu.com X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Zhao Lei generic/102 sometimes fails in newest btrfs toolchain, because it use non-mixed mode in default, which request more space for metadata, and no space for data writing. This patch force mixed mode for btrfs in generic/102. Signed-off-by: Zhao Lei --- tests/generic/102 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/generic/102 b/tests/generic/102 index abc3994..8c01fb5 100755 --- a/tests/generic/102 +++ b/tests/generic/102 @@ -48,6 +48,8 @@ _require_scratch rm -f $seqres.full +[[ "$FSTYP" = "btrfs" ]] && MKFS_OPTIONS+=" --mixed" + dev_size=$((512 * 1024 * 1024)) # 512MB filesystem _scratch_mkfs_sized $dev_size >>$seqres.full 2>&1 _scratch_mount