From patchwork Mon Nov 28 12:07:20 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Filipe Manana X-Patchwork-Id: 13057397 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id BFABBC4167D for ; Mon, 28 Nov 2022 12:17:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231246AbiK1MRN (ORCPT ); Mon, 28 Nov 2022 07:17:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56942 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231442AbiK1MQa (ORCPT ); Mon, 28 Nov 2022 07:16:30 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 866C52A24F; Mon, 28 Nov 2022 04:08:02 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 96F1AB80ABE; Mon, 28 Nov 2022 12:07:41 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 83F82C433C1; Mon, 28 Nov 2022 12:07:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1669637260; bh=4Lw7leUPy/1sxV9yrRek1PiVw3JFZsgbNqED3C3x7yA=; h=From:To:Cc:Subject:Date:From; b=E3AOZI6zT7227dwygjjNnrH20X2usONHjkgSAvRhPoC800vkyevcP2ZCgmWhtIglW J5lTpKsc/mIz+pKaVUndVL37GEvMeG4+u07HE5QpDzUIB0yBxuhINYEY44vu6bXu5N dT6CnBkOx+4IyzQbROeH9Lt40NQPVYNXR4d8QGTMXdc0JF+c758hS9S19q9vA233gH lJWcpTQULjXZTNigQ4+SQrR+dFW1MuGRVquEqQP2eFnBY4ydTHSZGBhLVjS8RAMUaj lcRH9fdgO+opx76kOIqhfMVGDY5ZMpfyU6SFbeckRfNoOv9PBuVV24dOpaQQtRYDMl w4ApLLfE+e5ZA== From: fdmanana@kernel.org To: fstests@vger.kernel.org Cc: linux-btrfs@vger.kernel.org, Filipe Manana Subject: [PATCH 0/4] fstests/btrfs: add a test case for send v2 and an update Date: Mon, 28 Nov 2022 12:07:20 +0000 Message-Id: X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: fstests@vger.kernel.org From: Filipe Manana This adds a test case specific for send v2 with some preparatory work in order to allow for that. Support for v2 send streams was added in btrfs-progs v5.19 and the kernel support introduced with kernel 6.0. More send v2 specific tests will be added later. Filipe Manana (4): btrfs: add a _require_btrfs_send_v2 helper common: make _filter_fiemap_flags optionally print the encoded flag btrfs/280: also verify that fiemap reports extents as encoded btrfs: test a case with compressed send stream and a shared extent common/btrfs | 14 +++++++ common/punch | 40 ++++++++++++++++++-- tests/btrfs/280 | 4 +- tests/btrfs/280.out | 12 +++--- tests/btrfs/281 | 89 +++++++++++++++++++++++++++++++++++++++++++++ tests/btrfs/281.out | 17 +++++++++ 6 files changed, 164 insertions(+), 12 deletions(-) create mode 100755 tests/btrfs/281 create mode 100644 tests/btrfs/281.out Reviewed-by: Josef Bacik