Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp30928pxt; Wed, 11 Aug 2021 13:44:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJySh372s9hs++eJ5qWA5u7v5TvWc12xj115u2NiXUHn0Dz5+JWG3BIBhW+uRSgT0SA3Pli4 X-Received: by 2002:a17:906:aada:: with SMTP id kt26mr362103ejb.199.1628714645746; Wed, 11 Aug 2021 13:44:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628714645; cv=none; d=google.com; s=arc-20160816; b=e7PxHkTe2us00VyXTwNNsyWOimoHHg7wPOQco6B0bmsdonN2VdeTSYCcSlFusU5VL1 zsQCDA0QnyThVpHJIUXHYVKsL86DA44dpR3hKioSzPOYssteLuxDvN3RWunREpwVBs7w QchSFiu/jRB7WAuPAPUQc+bZJaynFudRwG7tp48f9AlPfy8RQ67q6wo/bbqBZ/G8AP1x 11rXswOD9i5ZCH3P7idWZSUTvmEPj9uD4wXWG+ySb4ZOvFEoRunLGFO65dwaMbuyy4xt qZF5mueGKf5CX/LN34vcvM+BNrRinducW1ggEdPmkLm50ScNfvFIVnceG/e+mS+Yrz4u vfzg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=inYZ30BOLCFmgjt9HfeCp/TY/OhCcf+R7LqwPWc97xU=; b=rDag+sihy5wtT0cw9deYnbS3M/Bkl/VUV4h+A77M3UzBRTm/1AAZKZV4MWgp0ufI/1 fvrVE264P32QcsFyhTpM+9KMBJFhmmv5fhIN8frHnGY/9ILPmkp2cjeGFoeXLZWQCDKf AwSIBpA0/aXRGhl59E1+HuRMTmfFHFl+lPYt1JQ5FLisZP3+UZcTgEITP7clJYqPTLdO omthEaux07tLjI17LomHJ52CKKHH76hKzxKq+flzfz01LjTR7Fkm6n504rZSJySNxgeR NwF4o6jupyFPpaLy9Bwyd8V8QWB4eqElQ6I1ORpn+vRvLCsuqc1tnJSOSL7KmUy0GWXR DiSA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@toxicpanda-com.20150623.gappssmtp.com header.s=20150623 header.b=vFVVPt9t; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id jr12si188181ejb.335.2021.08.11.13.43.41; Wed, 11 Aug 2021 13:44:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@toxicpanda-com.20150623.gappssmtp.com header.s=20150623 header.b=vFVVPt9t; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232013AbhHKUl3 (ORCPT + 99 others); Wed, 11 Aug 2021 16:41:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60156 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231881AbhHKUl2 (ORCPT ); Wed, 11 Aug 2021 16:41:28 -0400 Received: from mail-qk1-x734.google.com (mail-qk1-x734.google.com [IPv6:2607:f8b0:4864:20::734]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D7870C0613D3 for ; Wed, 11 Aug 2021 13:41:04 -0700 (PDT) Received: by mail-qk1-x734.google.com with SMTP id 14so3914794qkc.4 for ; Wed, 11 Aug 2021 13:41:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=toxicpanda-com.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=inYZ30BOLCFmgjt9HfeCp/TY/OhCcf+R7LqwPWc97xU=; b=vFVVPt9ttpnqzk26gCVpoJaqXoIbN1/GF7OPtdMUn9hb2kY7DXjDSgo1ifrcl+btbl ALUtKUuuUV4exmtwQBFRe6kUIw8GB0y0/zLtuEnNtkRtHVLkvRYClOoY/gENS0gjdlQh c4yN3oPsS5u32KL0uyxNmh3NEtSnl1QcZku50vGvQWFcKCBLMSOmOjpno+JyaxLEkJeB gFipjt9MecWLcKNelqV+vTcygwZC1y1qNKZlolebEUumtTSwFfL9ZhdbjOiFa4ZRB3+x /s5/QoByh/oWx4yObb40fx8Ux5g2JgzHcl/NKkWlN9BkszMhEGALah8HxQa7BkMHnuqY eIAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=inYZ30BOLCFmgjt9HfeCp/TY/OhCcf+R7LqwPWc97xU=; b=ATgdmapWvalcS9OxcAJG3drEPokzM7upvI5EWKqkfOxfmAdHPOYfdNzevpJsX7HQAj hQT4WkrVgNLwF1ffL8i7qoa48XaAP/3MhyzxDB5odm7w3/xfdWkVaDalFlevAbjajLiX AoOlUNQhvvMa1llA4a+lZdx9HqY/G54K4Ad2qGlrsMtR07xSNjm98ei983NoiNGCuUWl bk8K88f2TSOqXcsH6k9gwsCYLbjgK03iuLSZ1kEmLPc9++Au9qEDDLXVRfO2JIXk2MFi 1LkVEzql9fZtZ/IpOecBGjlOqVWwBhnNiehSDzR9rc3EBBO0+a+HqJPQF8BH2pDoJLeY nRaA== X-Gm-Message-State: AOAM532nIU+wd8Napb9k24pXHCTOJ+hK2OFUqFSGItTq+HfeK/NwHbhv xRXRl5sEPZAiIB0W2JlSw+LoQcvEI3EuBg== X-Received: by 2002:a37:d43:: with SMTP id 64mr959993qkn.430.1628714463671; Wed, 11 Aug 2021 13:41:03 -0700 (PDT) Received: from [192.168.1.45] (cpe-174-109-172-136.nc.res.rr.com. [174.109.172.136]) by smtp.gmail.com with ESMTPSA id u189sm168648qkh.14.2021.08.11.13.41.02 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 11 Aug 2021 13:41:03 -0700 (PDT) Subject: Re: [PATCH] btrfs: Allow read-only mount with corrupted extent tree To: =?UTF-8?B?RMSBdmlzIE1vc8SBbnM=?= , linux-btrfs@vger.kernel.org Cc: Chris Mason , David Sterba , linux-kernel@vger.kernel.org References: <20210811200717.48344-1-davispuh@gmail.com> From: Josef Bacik Message-ID: Date: Wed, 11 Aug 2021 16:41:02 -0400 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: <20210811200717.48344-1-davispuh@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 8/11/21 4:07 PM, Dāvis Mosāns wrote: > Currently if there's any corruption at all in extent tree > (eg. even single bit) then mounting will fail with: > "failed to read block groups: -5" (-EIO) > It happens because we immediately abort on first error when > searching in extent tree for block groups. > > Now with this patch if `ignorebadroots` option is specified > then we handle such case and continue by removing already > created block groups and creating dummy block groups. > Already done and queue'ed up for the next release btrfs: rescue: allow ibadroots to skip bad extent tree when reading block group items thanks, Josef