From patchwork Wed Apr 11 23:47:30 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Omar Sandoval X-Patchwork-Id: 10337655 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 7EE0C6020F for ; Wed, 11 Apr 2018 23:47:49 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 70AD31FF60 for ; Wed, 11 Apr 2018 23:47:49 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 653A921BED; Wed, 11 Apr 2018 23:47:49 +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=-7.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI, T_DKIM_INVALID 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 F3CEB1FF60 for ; Wed, 11 Apr 2018 23:47:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752469AbeDKXrr (ORCPT ); Wed, 11 Apr 2018 19:47:47 -0400 Received: from mail-pf0-f195.google.com ([209.85.192.195]:46675 "EHLO mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752212AbeDKXrn (ORCPT ); Wed, 11 Apr 2018 19:47:43 -0400 Received: by mail-pf0-f195.google.com with SMTP id h69so2007427pfe.13 for ; Wed, 11 Apr 2018 16:47:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=osandov-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=0hTqBaB5Ge3MCvQ4JSwfYV8pDTQQkvQE4ozwJiGFTj8=; b=lsHfIOkoe1PKM1yxPVzPoTe7NpvQ+fOsXOQ8XCQlynIxIaeajFCQPkadbXBGmY3Dao hspcprYcX3yQY7A2tq8FJ72sh2+usc8cQCNQs0UXzlL33dtZ6fn5E0nc0+5CaKju2nv2 ju4KRTbYYbbpB9S54KT9adcRq0qQTJFPO+EVKIGulWa7x0/g9hnNJmGn6PCFNSrEeDIZ H/xqM6LlYGx7Yk6Z3AbHWWEk/cS7xJ7orLAKzXiNBuYMbdrSdqYFtx7KpcsCj6MevIzD 3h8apqnz11kpsv4wfqecPyAlwi16dcVad4ukYcD9fb9Og0t662iAgXfGHRBMDYyuz2/l TXvw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:in-reply-to:references; bh=0hTqBaB5Ge3MCvQ4JSwfYV8pDTQQkvQE4ozwJiGFTj8=; b=Lg77zW1UKL1koQyCFO9Xfk66J3J5MihAS16kqgUnV/Xfk69Q6Rqg5WuKE/RL5G1MWH P3yg4lEIUbUcSQCDUPpw02FL9gDx8j7TCDt/TvxgPpGSL7bcx4GvwZOSFo1X5ZfcazF0 He6kyRcRKji+kfi69Zi3mCDgA39c2sSe+4Dn3z8z4kXqQQPQDBTYZ0hY8m/mXJMlJwua 4Pc/1UfPc+72BrgbQjUcY/rj0Izf+gUXpXkV5IkDWTkfBPzOua8Z9p/qTiGG6GfLTjOl 4q2GVnY9PbttVc/4oNndVm5AuvkN5H8hbN0bpLhZjn8P7tvkf+42H7GxGqPwsnSVfLDA Kslg== X-Gm-Message-State: ALQs6tCSOTZ4Ezxu2pXARjKE7JXWvCdNbE1aHMdHJFt6+HebhIrCXjFk lo0ORSso+lUNUR5SmLRuc4RoYvQ2U2g= X-Google-Smtp-Source: AIpwx48nwCbYgOIn7xfmhML2njbXi0XN/YJUmOURRnSNT9Nin6soeukp/Hmsxfc8qF187Me7I+n+iw== X-Received: by 10.99.114.21 with SMTP id n21mr4989910pgc.142.1523490462576; Wed, 11 Apr 2018 16:47:42 -0700 (PDT) Received: from vader.thefacebook.com ([2620:10d:c090:180::1:5b86]) by smtp.gmail.com with ESMTPSA id z65sm4264185pgz.24.2018.04.11.16.47.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 11 Apr 2018 16:47:42 -0700 (PDT) From: Omar Sandoval To: linux-btrfs@vger.kernel.org, fstests@vger.kernel.org, Eryu Guan Cc: kernel-team@fb.com Subject: [PATCH 2/2] generic/427: used mixed mode for Btrfs Date: Wed, 11 Apr 2018 16:47:30 -0700 Message-Id: <5273be80b04afae67e5ff2137e713924c7bfc0ff.1523490276.git.osandov@fb.com> X-Mailer: git-send-email 2.17.0 In-Reply-To: References: In-Reply-To: References: Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Omar Sandoval This test creates a 256 MB filesystem and then writes a 200 MB file. With separate data and metadata, Btrfs will run out of data space since it needs to allocate some metadata space. Use mixed mode, which is the recommendation for smaller filesystems. Signed-off-by: Omar Sandoval --- tests/generic/427 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/generic/427 b/tests/generic/427 index 9cde5f50..b2cb4526 100755 --- a/tests/generic/427 +++ b/tests/generic/427 @@ -55,6 +55,8 @@ _require_test_program "feature" _require_aiodio aio-dio-eof-race # limit the filesystem size, to save the time of filling filesystem +# Btrfs needs to use mixed mode for such a small filesystem +[ "$FSTYP" = "btrfs" ] && MKFS_OPTIONS="$MKFS_OPTIONS -M" _scratch_mkfs_sized $((256 * 1024 * 1024)) >>$seqres.full 2>&1 _scratch_mount