From patchwork Mon Jan 21 16:33:13 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jeff Mahoney X-Patchwork-Id: 10774183 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 0A7AD1515 for ; Mon, 21 Jan 2019 16:33:49 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id ED9352970C for ; Mon, 21 Jan 2019 16:33:48 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E20742972C; Mon, 21 Jan 2019 16:33:48 +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.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI 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 89FD929385 for ; Mon, 21 Jan 2019 16:33:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730475AbfAUQdo (ORCPT ); Mon, 21 Jan 2019 11:33:44 -0500 Received: from mx2.suse.de ([195.135.220.15]:46332 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729891AbfAUQdo (ORCPT ); Mon, 21 Jan 2019 11:33:44 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 818FDAFAA for ; Mon, 21 Jan 2019 16:33:43 +0000 (UTC) Received: from starscream.home.jeffm.io (starscream-1.home.jeffm.io [192.168.1.254]) by mail.home.jeffm.io (Postfix) with ESMTPS id 9F82381AD3ED; Mon, 21 Jan 2019 11:31:58 -0500 (EST) Received: by starscream.home.jeffm.io (Postfix, from userid 1000) id 370F2265DAB; Mon, 21 Jan 2019 11:33:42 -0500 (EST) From: jeffm@suse.com To: fstests@vger.kernel.org Cc: Jeff Mahoney Subject: [PATCH 4/7] btrfs: require feature raid56 for raid56 tests Date: Mon, 21 Jan 2019 11:33:13 -0500 Message-Id: <20190121163316.20616-4-jeffm@suse.com> X-Mailer: git-send-email 2.16.4 In-Reply-To: <20190121163316.20616-1-jeffm@suse.com> References: <20190121163316.20616-1-jeffm@suse.com> Sender: fstests-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: fstests@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Jeff Mahoney btrfs/125, btrfs/148, btrfs/157, and btrfs/158 test for raid56 behavior. We shouldn't run if the kernel doesn't have support for them. Signed-off-by: Jeff Mahoney Reviewed-by: Filipe Manana --- tests/btrfs/125 | 1 + tests/btrfs/148 | 1 + tests/btrfs/157 | 1 + tests/btrfs/158 | 1 + 4 files changed, 4 insertions(+) diff --git a/tests/btrfs/125 b/tests/btrfs/125 index 5ac68b67..847fa62a 100755 --- a/tests/btrfs/125 +++ b/tests/btrfs/125 @@ -51,6 +51,7 @@ _supported_os Linux _require_scratch_dev_pool 3 _test_unmount _require_loadable_fs_module "btrfs" +_require_btrfs_fs_feature raid56 _scratch_dev_pool_get 3 diff --git a/tests/btrfs/148 b/tests/btrfs/148 index d0e554c2..3fd8616f 100755 --- a/tests/btrfs/148 +++ b/tests/btrfs/148 @@ -30,6 +30,7 @@ _supported_os Linux _require_scratch _require_scratch_dev_pool 4 _require_odirect +_require_btrfs_fs_feature raid56 _scratch_dev_pool_get 4 diff --git a/tests/btrfs/157 b/tests/btrfs/157 index d9ea4b7b..7f75c407 100755 --- a/tests/btrfs/157 +++ b/tests/btrfs/157 @@ -49,6 +49,7 @@ _supported_fs btrfs _supported_os Linux _require_scratch_dev_pool 4 _require_btrfs_command inspect-internal dump-tree +_require_btrfs_fs_feature raid56 get_physical_stripe0() { diff --git a/tests/btrfs/158 b/tests/btrfs/158 index fe2dd956..603e8bea 100755 --- a/tests/btrfs/158 +++ b/tests/btrfs/158 @@ -41,6 +41,7 @@ _supported_fs btrfs _supported_os Linux _require_scratch_dev_pool 4 _require_btrfs_command inspect-internal dump-tree +_require_btrfs_fs_feature raid56 get_physical_stripe0() {