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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 257A7C433EF for ; Fri, 27 May 2022 13:33:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1351965AbiE0Nd3 (ORCPT ); Fri, 27 May 2022 09:33:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34016 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1351915AbiE0NdX (ORCPT ); Fri, 27 May 2022 09:33:23 -0400 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1B37D146435; Fri, 27 May 2022 06:33:22 -0700 (PDT) Received: by verein.lst.de (Postfix, from userid 2407) id AA8D768AFE; Fri, 27 May 2022 15:33:18 +0200 (CEST) Date: Fri, 27 May 2022 15:33:18 +0200 From: Christoph Hellwig To: Nikolay Borisov Cc: Christoph Hellwig , fstests@vger.kernel.org, linux-btrfs@vger.kernel.org Subject: Re: [PATCH 1/9] btrfs: add a helpers for read repair testing Message-ID: <20220527133318.GA23864@lst.de> References: <20220524071838.715013-1-hch@lst.de> <20220524071838.715013-2-hch@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org On Fri, May 27, 2022 at 02:22:28PM +0300, Nikolay Borisov wrote: >> +# Return the btrfs logical address for the first block in a file >> +_btrfs_get_first_logical() >> +{ >> + local file=$1 >> + _require_command "$FILEFRAG_PROG" filefrag >> + >> + ${FILEFRAG_PROG} -v $SCRATCH_MNT/foobar >> $seqres.full > > Likely you want to print the logical layout of the file for reference > purposes? Then use $file instead of $SCRATCH_MNT/foobar Yeah, this should use $file.