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 EB8F0C00140 for ; Tue, 2 Aug 2022 14:27:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237216AbiHBO1j (ORCPT ); Tue, 2 Aug 2022 10:27:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49816 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230497AbiHBO1i (ORCPT ); Tue, 2 Aug 2022 10:27:38 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [IPv6:2001:67c:2178:6::1c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 78DCB1706A for ; Tue, 2 Aug 2022 07:27:37 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 2D31B375A4; Tue, 2 Aug 2022 14:27:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1659450456; h=from:from:reply-to:reply-to:date:date:message-id:message-id:to:to: cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=9+Rm1T95mC9IpiHWPS1GZSe0y8hRufuEjWKTbWWk1zQ=; b=pufCl4k/8oBgjTilaPhLS30LpvmArl/D56BRIGESZ1RxsbosHdT7Z2Kw+hBOs78elg7N3a F2cQBoRsNvy6VRkU/Lx/EyF94cFDWouLYLyXwWNgC3BM2BFmBDkT2mQbFLmNVC43f1CVna EpLRdxfrnnqjszuSSprljRG3gIbEbR4= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1659450456; h=from:from:reply-to:reply-to:date:date:message-id:message-id:to:to: cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=9+Rm1T95mC9IpiHWPS1GZSe0y8hRufuEjWKTbWWk1zQ=; b=98FvVP6gtucCj2RjGtvWZswVKmyrzH00zSWvXIl4Xew39JvNbb37mqzR5e3Jm+tyw+Vy6f hn4K3knp79LZt+BA== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 02AE213A8E; Tue, 2 Aug 2022 14:27:35 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id M0EnO1c06WKNdQAAMHmgww (envelope-from ); Tue, 02 Aug 2022 14:27:35 +0000 Date: Tue, 2 Aug 2022 16:22:34 +0200 From: David Sterba To: Qu Wenruo Cc: linux-btrfs@vger.kernel.org Subject: Re: [PATCH 0/2] btrfs: scrub: small enhancement related to super block errors Message-ID: <20220802142234.GL13489@twin.jikos.cz> Reply-To: dsterba@suse.cz Mail-Followup-To: dsterba@suse.cz, Qu Wenruo , linux-btrfs@vger.kernel.org References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23.1-rc1 (2014-03-12) Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org On Tue, Aug 02, 2022 at 02:53:01PM +0800, Qu Wenruo wrote: > Recently during a new test case to verify btrfs can handle a fully > corrupted disk (but with a good primary super block), I found that scrub > doesn't really try to repair super blocks. As the comment says, superblock gets overwritten eventually, I'm not sure we need to start the commit if it's found to be corrupted. > And scrub doesn't report super block errors in dmesg either. Yeah it makes sense to report it.