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 1A9CBC433EF for ; Thu, 19 May 2022 10:50:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236342AbiESKub (ORCPT ); Thu, 19 May 2022 06:50:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57376 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234382AbiESKu2 (ORCPT ); Thu, 19 May 2022 06:50:28 -0400 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 51A71AEE3F for ; Thu, 19 May 2022 03:50:27 -0700 (PDT) Received: by verein.lst.de (Postfix, from userid 2407) id 8B95868AFE; Thu, 19 May 2022 12:50:23 +0200 (CEST) Date: Thu, 19 May 2022 12:50:23 +0200 From: Christoph Hellwig To: Qu Wenruo Cc: Christoph Hellwig , Qu Wenruo , Chris Mason , Josef Bacik , David Sterba , linux-btrfs@vger.kernel.org Subject: Re: [PATCH 12/15] btrfs: add new read repair infrastructure Message-ID: <20220519105023.GA5891@lst.de> References: <20220517145039.3202184-1-hch@lst.de> <20220517145039.3202184-13-hch@lst.de> <20220519093641.GA32623@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 Thu, May 19, 2022 at 06:41:52PM +0800, Qu Wenruo wrote: > So in that case, the best solution is to use "btrfs-map-logical -l > 343998464", which will directly return the physical offset of the wanted > logical on each involved devices. > > Although we need to note: > > - btrfs-map-logical may not always be shipped in progs in the future > This tool really looks like a debug tool. I'm not sure if we will keep > shipping it (personally I really hope to) > > - btrfs-map-logical only return data stripes > Thus it doesn't work for RAID56 just in case you want to use it. > > Despite the weird extent logical bytenr, everything should be fine with > btrfs-map-logical. Oh, nice, this is much better than the hackery in the existing tests. That bein said the -c option does not seem to work. No matter what I specify it always returns all three mirrors. I guess a little awk will fix that, but the behavior seems odd.