From patchwork Wed Aug 18 21:33:23 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Josef Bacik X-Patchwork-Id: 12445445 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=-16.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham 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 E7FE2C4338F for ; Wed, 18 Aug 2021 21:33:53 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id C997261103 for ; Wed, 18 Aug 2021 21:33:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234237AbhHRVe1 (ORCPT ); Wed, 18 Aug 2021 17:34:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36370 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234031AbhHRVeU (ORCPT ); Wed, 18 Aug 2021 17:34:20 -0400 Received: from mail-qk1-x72a.google.com (mail-qk1-x72a.google.com [IPv6:2607:f8b0:4864:20::72a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E32DBC061764 for ; Wed, 18 Aug 2021 14:33:44 -0700 (PDT) Received: by mail-qk1-x72a.google.com with SMTP id t68so4761625qkf.8 for ; Wed, 18 Aug 2021 14:33:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=toxicpanda-com.20150623.gappssmtp.com; s=20150623; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=DswvzFcPEbl9P5cSIRr8UzGdk0zmvN47Ia4PEe/avis=; b=eRmvZLoR/y/4AfCU2FodssdZYMbeeq/Xtq/MjluJ351oP4/EGSc9Ftr4+k61ULN++o Refq+hgmFGzlnzC3I2N2bO3LLiV4066KqS//w7UUkgAfwn2AahsdTRxDvdGgzz8F56qV bSSTXcQRN+wbMJ1i+swZJn6sXlBOhzZ7ELpl0CzUQjVT7wTCaM8fTRNeEMbmiIvFB11X lsMiKEoaNe429lijbC6iZS3JUGnAZaZulsWTFNYiR8gpGxD9vIIzniYGu+9HNrfZNH0/ c/btlsE2IGWUkG+f68yF3frJuyfOjuJoKCsxlhnufwIwfPwMSZZHrL9d4fMYiZHcq3A1 qFEg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=DswvzFcPEbl9P5cSIRr8UzGdk0zmvN47Ia4PEe/avis=; b=YrBbLO+mWe9XSIl5SVuJpb+xdH0cMWrK+SJxIOSQp00R3Log8iFFweW56cmqPFXtSt AN/wTC+t267P452+ju4wgcQbL8beTWD20Whp7Pf3OQLOwVCXFZvjwsj9N6le2NlsVwVw MyRBlWn2jlRg9nQfkf3o0EVRpblbyWwcDHzqGIftGkfwfA2ylBWK/7xDh7KnPuepY6Bq Q8ogXH2ZIvpumJNvW8arVoNeIuzf1xT5Hp7RBWWWfyQMtZn+WYpE33qnjj7ml7bH4esZ /MmswZX3AwFBTcvAm7aU3jgCOdZGzNvenxyCZRftwPQQbYH/mxcepbwwXSNCv1J23BdW rMFw== X-Gm-Message-State: AOAM5319YJpsJBtTjOv+S6phRZgkAQoPPXFYTXNre0b9hjGZ/vTzWKli KtDFe6SvpiiaZG2l8uUsCWSE7zIkHN2pEw== X-Google-Smtp-Source: ABdhPJxCyfSG0PWoW3VoAQj63n0XfJCj/7ICWSzOkFDRgzTJ8Ioza7UnoupJJAkNQ0nG0kR0EbIPdA== X-Received: by 2002:a05:620a:2298:: with SMTP id o24mr352650qkh.235.1629322423889; Wed, 18 Aug 2021 14:33:43 -0700 (PDT) Received: from localhost (cpe-174-109-172-136.nc.res.rr.com. [174.109.172.136]) by smtp.gmail.com with ESMTPSA id h140sm566655qke.112.2021.08.18.14.33.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Aug 2021 14:33:43 -0700 (PDT) From: Josef Bacik To: linux-btrfs@vger.kernel.org, kernel-team@fb.com Subject: [PATCH v2 11/12] btrfs-progs: add a test image with a corrupt block group item Date: Wed, 18 Aug 2021 17:33:23 -0400 Message-Id: <5f2e5e13597f2f96503657abdf4ff25fcf74a8c2.1629322156.git.josef@toxicpanda.com> X-Mailer: git-send-email 2.26.3 In-Reply-To: References: MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org This image has a broken used field of a block group item to validate fsck does the correct thing. Signed-off-by: Josef Bacik --- .../.lowmem_repairable | 0 .../050-invalid-block-group-used/default.img.xz | Bin 0 -> 1036 bytes 2 files changed, 0 insertions(+), 0 deletions(-) create mode 100644 tests/fsck-tests/050-invalid-block-group-used/.lowmem_repairable create mode 100644 tests/fsck-tests/050-invalid-block-group-used/default.img.xz GIT binary patch literal 1036 zcmV+n1oQj-H+ooF000E$*0e?f03iVu0001VFXf}+6aNFrT>wRyj;C3^v%$$4d1rE0 zjjaF1$8Jv*pMMbE@{&83eAipquzP5y*Z^dMFaaah{5${uN^u50JUj3Gv&TKFetZNb zeGi-h_Sc-xdQ?TDr}!X-75pO3s7;Q#Cs@eB}(-tDiTrOkuL zr-`Q{!4@d7$vYR${O40b$KD!sxV##0^*`8ePjSki5__Mw0>a{sam+nk%_Taf1QUIl zCPC+p!>ol%J~2Y3anuU4qT<_;R2!C0z*;OS_XlH|4cwp*YYCcEjpgm>gLEL94KJ)NIDw(fAxBE)HBeuH?SFG)P2n*qCcX@dj zl6!cB_HK~tM6u@FF~?28(XL*Vme;}!4%~G!$l6uxm(%@F-`~K9;P=VVx6iDWsw2&F)MC!ne z{yU2uSdn?OJQk99D$H$r|?eQ%u-&&dW^Q%ogbbG`T74qDMIaXhLRLP+j+OmK|vlc6+Q+8 z>i9;tP|5yL$Hg>IZhAK@v(3YzO&IxH_W