From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 63EBAC43460 for ; Thu, 8 Apr 2021 18:41:45 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 2795661108 for ; Thu, 8 Apr 2021 18:41:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232287AbhDHSlz (ORCPT ); Thu, 8 Apr 2021 14:41:55 -0400 Received: from mail.kernel.org ([198.145.29.99]:44796 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231676AbhDHSlz (ORCPT ); Thu, 8 Apr 2021 14:41:55 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 931B361041; Thu, 8 Apr 2021 18:41:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1617907303; bh=5jxMyiZzmrdbVj2R/hMXINSTVlVFTSuv6FtTMLMCzrI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=UvLY9saRFlWnGCSGe5CmmWf20W/g5leXLp1lWaaxVCPB+xQaaDsQGlplkBlKeZ+uR Ct3Fk06GmpRZqBuAuGk/CnltnzVT0j9FSLcsfS9DQ4vk3CkOVd1nRD/zwsLanvacoO 8eo8CQi5Qm4OFckRg2MgqCB1sISD3MuAKqQyzwWgCWCMOr4orgB5OBGtENN1WkPnpA cAMM/Jecw9yWvtQ6yLO2//hMPpvFoFh4IlzORd+YQ4SmE5qkLyFakars6BdzM9iEWJ Z6GCRH88haQ0ntBjuTMrZZ1hBKZiQPFeGJIjPGTgYGtNKzDGtoHd4wkbHu3yzbRIZF 70udcm//a39HA== Date: Thu, 8 Apr 2021 11:41:42 -0700 From: Eric Biggers To: Boris Burkov Cc: fstests@vger.kernel.org, linux-fscrypt@vger.kernel.org, linux-btrfs@vger.kernel.org, kernel-team@fb.com Subject: Re: [PATCH v2 2/3] generic/574: corrupt btrfs merkle tree data Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: fstests@vger.kernel.org On Thu, Apr 08, 2021 at 11:30:12AM -0700, Boris Burkov wrote: > > Note that there is a bit of a kludge here: since btrfs_corrupt_block > doesn't handle streaming corruption bytes from stdin (I could change > that, but it feels like overkill for this purpose), I just read the > first corruption byte and duplicate it for the desired length. That is > how the test is using the interface in practice, anyway. If that's the problem, couldn't you just write the data to a temporary file? - Eric