From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=195.135.223.130 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795905995; b=XdByW5JRM0UO+hcvPqho9AAXkgQ4jAUvAjf9ZxSiouud6fPMC+BURVyTpbKyHdGsR59u w7cXZBGXmCBuL2X1ul7PEnKgWV8sxjuTsaIMexAZEaP1u4kFSquASA4XbCf1r5xap4P1o 1C5ypekxq16NIMfh53QBmcs3Q/UTzTE93qUS3o5OTa5DGipHZP/CZOHOQBXYCZ2qLWGS2 Z94IS1DnGjWR1Oby9HISJV7tmDb10Tvpxf44GXnAl1bTPHFly+aUMuJVlmLXsDGI86Xtx lPVSS6hriGUmDCRmO5kZsWo69aCGB5Urm2SFS/+KkKZwRHlAk5i517wa6T19jG1Jafg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795905995; h=DMARC-Filter:Received:DKIM-Signature:DKIM-Signature:Received: Received:From:To:Subject:Date:Message-ID:X-Mailer:MIME-Version: Content-Transfer-Encoding:X-Spam-Flag:X-Spam-Level:X-Spamd-Result: X-Spam-Score; bh=mXfhJkb3oB4KdYUqqciNSFWS01b88KyY9wrT3eKozOE=; b=YEHiyUViGRklucYkHHU7h3pubkq8V29xKXgpTRj/hgJNoZZM+sxCYqT8L/3rtMrukstt dxFpJ/ARthZEYE1QgHPArlP/0auucrc2IFZM+4bW+5+q2i/+11PAb2FCDJ1VCRBEv6PsS oOwWNcbW73PqTiyP6Spk8C30aYkrAFIsm7dz6rTVufmmTpObmCjiP77Bfep5TK8Famaw9 DPEheZL+G/yFQK0trzr67ke4+U+k51bv3+iE7u+CZKagPu+uxYfE+bmMOKZI/NhZlnzkO PsK3+jR8h5g95HF9Vxq6N+0pGMIOnlI8Ognnkuv4Ger1iH2x8jqKVtJuhIgUg686bzA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=suse.com; spf=pass smtp.mailfrom=suse.com; dkim=pass header.d=suse.com header.i=@suse.com header.a=rsa-sha256 header.s=susede1 header.b=XzxW2wZa; dkim=pass header.d=suse.com header.i=@suse.com header.a=rsa-sha256 header.s=susede1 header.b=XzxW2wZa; arc=none smtp.remote-ip=195.135.223.130 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.223.130]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DEF9E606A31C for ; Sat, 28 Nov 2026 22:46:34 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org DEF9E606A31C Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=suse.com header.i=@suse.com header.a=rsa-sha256 header.s=susede1 header.b=XzxW2wZa; dkim=pass (1024-bit key) header.d=suse.com header.i=@suse.com header.a=rsa-sha256 header.s=susede1 header.b=XzxW2wZa Received: from imap1.dmz-prg2.suse.org (unknown [10.150.64.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 1048722796 for ; Sat, 28 Nov 2026 22:46:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1795905987; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=mXfhJkb3oB4KdYUqqciNSFWS01b88KyY9wrT3eKozOE=; b=XzxW2wZaznkeBYixi1zZj9CnufwTgboP/fDt5Pt24NOkLffhbVru6S5sJJJqOfoyL0ApeQ jxZ+VNNDntb1ZrGyegdkMX2FTY29fj1+/iNvBYIbZFVPKLLs4DUpZchIWWal0C+x5oxo/l I3doZPCU/nB16wja/YNnyHShpYA8lfM= Authentication-Results: smtp-out1.suse.de; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1795905987; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=mXfhJkb3oB4KdYUqqciNSFWS01b88KyY9wrT3eKozOE=; b=XzxW2wZaznkeBYixi1zZj9CnufwTgboP/fDt5Pt24NOkLffhbVru6S5sJJJqOfoyL0ApeQ jxZ+VNNDntb1ZrGyegdkMX2FTY29fj1+/iNvBYIbZFVPKLLs4DUpZchIWWal0C+x5oxo/l I3doZPCU/nB16wja/YNnyHShpYA8lfM= Received: from imap1.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id E423013485 for ; Sat, 28 Nov 2026 22:46:25 +0000 (UTC) Received: from dovecot-director2.suse.de ([2a07:de40:b281:106:10:150:64:167]) by imap1.dmz-prg2.suse.org with ESMTPSA id xu9MEMFZC2teUQAAD6G6ig (envelope-from ) for ; Sat, 28 Nov 2026 22:46:25 +0000 From: Qu Wenruo To: linux-btrfs@vger.kernel.org Subject: [PATCH 0/2] btrfs: scrub: improving read-only and write failure report Date: Sun, 29 Nov 2026 09:16:05 +1030 Message-ID: X-Mailer: git-send-email 2.56.1 X-Mailing-List: linux-btrfs@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Flag: NO X-Spam-Level: X-Spamd-Result: default: False [-11.80 / 50.00]; SUSE_INTERNAL_BYPASS(-9.00)[]; BAYES_HAM(-3.00)[100.00%]; MID_CONTAINS_FROM(1.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; R_MISSING_CHARSET(0.50)[]; NEURAL_HAM_SHORT(-0.20)[-0.998]; MIME_GOOD(-0.10)[text/plain]; RCPT_COUNT_ONE(0.00)[1]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; DKIM_SIGNED(0.00)[suse.com:s=susede1]; DBL_BLOCKED_OPENRESOLVER(0.00)[imap1.dmz-prg2.suse.org:helo]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_COUNT_TWO(0.00)[2]; TO_MATCH_ENVRCPT_ALL(0.00)[]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[linux-btrfs@vger.kernel.org]; RCVD_TLS_ALL(0.00)[] X-Spam-Score: -11.80 The first patch is a bug that scrub_stripe::write_error_bitmap is never cleared even we have moved to a new stripe. Thankfully the bug has limited affect. The second patch is to report read-only and failed write as uncorrectable errors, according to the existing comment in the UABI header. This is not the best solution, but that's what we can do before we expand btrfs_scrub_progress structure. Qu Wenruo (2): btrfs: scrub: reset write_error_bitmap for a new stripe btrfs: scrub: report read-only and failed write correctly fs/btrfs/scrub.c | 61 +++++++++++++++++++++++++++++++++++------------- 1 file changed, 45 insertions(+), 16 deletions(-) -- 2.56.1