From patchwork Sat Nov 10 11:51:44 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christoph Hellwig X-Patchwork-Id: 10677101 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 DCA0417D4 for ; Sat, 10 Nov 2018 11:52:02 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CDD262CF08 for ; Sat, 10 Nov 2018 11:52:02 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C22B32CF3E; Sat, 10 Nov 2018 11:52:02 +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.7 required=2.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI 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 8358B2CF08 for ; Sat, 10 Nov 2018 11:52:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729026AbeKJVgr (ORCPT ); Sat, 10 Nov 2018 16:36:47 -0500 Received: from bombadil.infradead.org ([198.137.202.133]:35928 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728910AbeKJVgr (ORCPT ); Sat, 10 Nov 2018 16:36:47 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender :Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From :Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=laEqnd2jgcohyjOgF3N7kddKvk8fT63lNC4qsNBtKo8=; b=gRbUOXI8FCLzbTb6ytEBFmeUKa qNiBrRj+d/qXuLEtTqNVnR37peZf80xqkbFK7xoeNfEDMwqPW0tQFTeqsuRN4z2dDGZs4n4X5Vs+T f47gi2l5EJlwV2yIvNLWjqSbpdQmWGayGUclMPq0A9dRGF8gBd9pz55kNXKj6pcJhp61BI3NvwwIY GH+uEKzgP1YUQxNNyQI+hqjHzDCsxR5vHYOZSzcnJW1LKOCwrkYMfY2TF0nzw9ktobxcwmn61GN/M 8/5T/GteICm496wLCcaH3PEEBN9rQaevsaLZ++/u8j4Mlgfo4t4dDueZg9S3JfUhbQdKCKdYduzH9 wUw5LI1Q==; Received: from 089144211136.atnat0020.highway.a1.net ([89.144.211.136] helo=localhost) by bombadil.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1gLRo1-0000dt-4c; Sat, 10 Nov 2018 11:52:01 +0000 From: Christoph Hellwig To: guaneryu@gmail.com Cc: fstests@vger.kernel.org, linux-xfs@vger.kernel.org Subject: [PATCH 4/5] xfs: xfs_fsr requires working preallocation support Date: Sat, 10 Nov 2018 12:51:44 +0100 Message-Id: <20181110115145.30356-5-hch@lst.de> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181110115145.30356-1-hch@lst.de> References: <20181110115145.30356-1-hch@lst.de> MIME-Version: 1.0 X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-xfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-xfs@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Check that the file system actually supports preallocation for defrag tests that end up calling xfs_fsr, as they can't be supported in always_cow mode. Signed-off-by: Christoph Hellwig --- common/defrag | 1 + 1 file changed, 1 insertion(+) diff --git a/common/defrag b/common/defrag index df249dfd..79485f0d 100644 --- a/common/defrag +++ b/common/defrag @@ -8,6 +8,7 @@ _require_defrag() { case "$FSTYP" in xfs) + _require_xfs_io_command "falloc" DEFRAG_PROG="$XFS_FSR_PROG" ;; ext4|ext4dev)