🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.git
Article #2969

Re: [GSoC PATCH] fsck: report the real object count in the connectivity message

#2969
From: Laveesh Bansal
Date: Thu, 12 Nov 2026 02:55
30 lines
10179 bytes
Thanks for the patch. Looks good to me. I ran t1450 with and without
the patch: the new tests pass with it and fail without.

One thing about the title:

> fsck: report the real object count in the connectivity message

In a partial clone the number counts blobs that were never downloaded.
Setup:

    git init -q -b main src
    git -C src config uploadpack.allowFilter true
    for i in 1 2 3
    do
    	echo $i >src/f$i
    	git -C src add f$i
    	git -C src commit -qm c$i
    done
    git clone -q --no-checkout --filter=blob:none file://$PWD/src pc

Then:

    $ git -C pc fsck --verbose 2>&1 | grep connectivity
    Checking connectivity (9 objects)
    $ git -C pc cat-file --batch-all-objects --batch-check | wc -l
    warning: This repository uses promisor remotes. Some objects may not be loaded.
    6

Would "report the number of objects checked" fit the title better?
Technical Details
Message-ID: <20261112025559.83265-1-laveeshb@laveeshbansal.com>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!nntp.comgw.net!eternal-september.org!feeder.eternal-september.org!usenet.network!.POSTED!vger.kernel.org!git+bounces-75262-linux-kernel-git=dewy.ru
References: <20261020102134.42151-1-aniketgupta3001@gmail.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!nntp.comgw.net!eternal-september.org!feeder.eternal-september.org!usenet.network!.POSTED!vger.kernel.org!git+bounces-75262-linux-kernel-git=dewy.ru
From: laveeshb@laveeshbansal.com (Laveesh Bansal)
Newsgroups: linux.kernel.git
Subject: Re: [GSoC PATCH] fsck: report the real object count in the connectivity message
Date: Wed, 11 Nov 2026 18:55:59 -0800
Organization: Usenet Network
Message-ID: <20261112025559.83265-1-laveeshb@laveeshbansal.com>
References: <20261020102134.42151-1-aniketgupta3001@gmail.com>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="995134"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:VQDHakKRIIqqRx/yrjgcIA8Wddc= sha256:tBkfrH8EEc+oqm+tUQR9yyk1BVfiXiQjANaOdYnVPMc=
	sha1:TAmfHOw+aK3eLOY8XcQsGOFnQ0I= sha256:MI4jUTsdojFGIRzISOYZZe/Uh6ZBON2ZpK+o/UQBqjI=
List-ID: <git.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
	by mail.dewy.ru (Postfix) with ESMTP id 649251140D9; Thu, 12 Nov 2026 05:56:55 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -2.851
X-Spam-Status: No, score=-2.851 tagged_above=-9999 required=6.31
	tests=[DKIM_INVALID=0.1, DKIM_SIGNED=0.1,
	HEADER_FROM_DIFFERENT_DOMAINS=0.249, MAILING_LIST_MULTI=-1,
	RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001]
	autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=fail (1024-bit key)
	reason="fail (message has been altered)" header.d=laveeshbansal.com
X-Received: from mail.dewy.ru ([127.0.0.1])
	by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id jAvcSW17YbyK;
	Thu, 12 Nov 2026 05:56:47 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.232.135.74; helo=sto.lore.kernel.org; envelope-from=git+bounces-75262-linux-kernel-git=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=none (p=none dis=none) header.from=laveeshbansal.com
X-Received: from sto.lore.kernel.org (sto.lore.kernel.org [172.232.135.74])
	by mail.dewy.ru (Postfix) with ESMTPS id BCBD51140D2; Thu, 12 Nov 2026 05:56:38 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sto.lore.kernel.org (Postfix) with ESMTP id CB115619E12; Thu, 12 Nov 2026 02:56:34 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=3; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
	t=1794452193;
	b=XNNEUwgTNXkM7pt0+u3ISqa2pRePwidhbcPEQapC4FUhyNiQ2H+ox+5vFS9dcI0p2aVv
	 qIC8GuGt4EBDvsl0wSKx1qTK2Z9/Ae5SAa7eK3IWB1OS6tfLrV74uwYVVxAFoMdyFJzaU
	 vuVjoI7jd9/7E6w5TUS9znf7tK64cc3aVEATeIzrgFpsS+QPOD+lKj0wUAlflBKPd38zw
	 HMsQkOTFeeqzNPlL6ilZs2xwiBYH9oaIE+X0iqOwxOZ+BKk01yyA90kho2aSVlecX0Wmw
	 q1MUKjxPD88L7FhZYERR8m64DPtAwwfo5KRq4D09FeVrQ9XlB+7EnhLx9CO4WfOETiw==
X-ARC-Message-Signature: i=3; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794452193;
	h=X-Original-To:Received:DMARC-Filter:DKIM-Signature:Received:From:To:
	 Cc:Subject:Date:Message-ID:X-Mailer:In-Reply-To:References:
	 X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe:
	 List-Unsubscribe:List-Owner:Precedence:MIME-Version:
	 Content-Transfer-Encoding:X-ZohoMailClient;
	bh=d73EyyrfHj5fSu43bGr8mVPdh+lb0OJADX2Cza623hk=;
	b=1R0c37zz6Ep/gv/v1xCS2PebeuievreT1VqlIzq7CCVzD8oAhwzYq77LcIEkkrhzHiVY
	 TWJFnnY6rfHyqIv4ZzUvJwtSuieRf4Bzsie9di5psIt+m8pjaXYO53zqWHzNNt7PNOL+K
	 LaK7v8Sm7wMJ8+xBLMJ05EMeohHhup2yTdq9zFMwfn9XfeeSekc4PwRfSqxvyBU42n6Tf
	 deRUPc80xOUBJ51Xb/AAQNpUjWyZpx02sDSx9yYfx6Ua/ZCnlH5Gf4MJ5d1TMkUaTHLc2
	 xdLX4eTeMBjlZ+1o+oKfMei74tR2EKOY1uNytqCSwTOll/tHKN4z8R/f25pFZgy8rsg==
X-ARC-Authentication-Results: i=3; smtp.subspace.kernel.org; 
	dkim=fail reason="signature verification failed" header.d=laveeshbansal.com header.i=@laveeshbansal.com header.a=rsa-sha256 header.s=zoho header.b=eZqX5478;
	dmarc=none header.from=laveeshbansal.com;
	spf=pass smtp.mailfrom=laveeshbansal.com;
	arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id C2E50606A32E;
	Thu, 12 Nov 2026 02:56:33 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=fail reason="signature verification failed" (1024-bit key) header.d=laveeshbansal.com header.i=@laveeshbansal.com header.a=rsa-sha256 header.s=zoho header.b=eZqX5478
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=165.173.182.15
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
	t=1794452193;
	b=BRuitABGulZyRs0CIgCX5HrucvF/DGjsR4yErxVl14DO6IUl9IrrcSPcJKrAnGqpz6PW
	 cocvcX6qvmHCQ/KAPthtTLQJohkeChr/cC98k9XwzX3+Gw6uD2wvlTxOj5o8iKhSixFMp
	 AuGxlJgBggR3fKUlmf6klYKyux4jFbYzgKba+14vKBmtqQnrVLhDTZAg0qAWGOmyo5Dnz
	 H0Wy+0nCyulIERTVYKPqcz73Z1fetbuoTzkmdeCXNT93RjFUA0bEPlxX1pC8ylfdZKVgu
	 2GRDdoEwFfOew38mqz4yIqKet7ZJ5IEEgPeHABFQfr/p1vKfU1FW16OB6Us40sfXLcw==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794452193;
	h=DMARC-Filter:DKIM-Signature:Received:From:To:Cc:Subject:Date:
	 Message-ID:X-Mailer:In-Reply-To:References:MIME-Version:
	 Content-Transfer-Encoding:X-ZohoMailClient;
	bh=d73EyyrfHj5fSu43bGr8mVPdh+lb0OJADX2Cza623hk=;
	b=NLUiPdSmoT1giVp/A8xPUBBVCqQFR3YFYg8iF/IjSznm4RF/nroPWql8YKUZSczYhpDc
	 2MQvSxrSf135YBZn9AzzKe4Sl0DfUOdW/tSQzGC7g/FvjEFl8h+sQpSphyFY1vrmIMqep
	 6dHx+8EresAvsbzVGsUp5jg+Keg9Mzmg0cKgBGw1ZfoyKgfQ5346X5BOqONeoWyxQgoqx
	 qYg8ucFYetMLegUa//JnYpp+uu1GRC//75BC3HMq4ke3Kcq79TIzSpjT7bdtx7VBDU8nT
	 fQ3BMSu4X3GrYx3CptJw8u1j7YH6FKYaSn0kb7GfEsYNkm/bu+m8yFYNcVG8SbF5juQ==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dmarc=none header.from=laveeshbansal.com;
	spf=pass smtp.mailfrom=laveeshbansal.com;
	dkim=pass header.d=laveeshbansal.com header.i=@laveeshbansal.com header.a=rsa-sha256 header.s=zoho header.b=eZqX5478;
	arc=pass header.oldest-pass=0 smtp.remote-ip=165.173.182.15
X-Received: from sender5-op-o15.zoho.com (sender5-op-o15.zoho.com [165.173.182.15])
	(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 65D3C606A321
	for <git@vger.kernel.org>; Thu, 12 Nov 2026 02:56:32 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 65D3C606A321
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=laveeshbansal.com
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=laveeshbansal.com
X-ARC-Seal: i=1; a=rsa-sha256; t=1794452187; cv=none; 
	d=zohomail.com; s=zohoarc; 
	b=jEbdzpE2syQGPmHr8qjIGLdrA/nUQleMjJJMPpkL6t4b/KBmAODhmBoqYIylqZPAC25hbhnkGqNv2e4LSzQw2NvtaHjsjAEgVW/eUlmJycv31l/4bMMGYh24e8WuQRxzvEvKu3LMjEJQh2eCs8Focw1qYF8nlofMalsVXKytgyk=
X-ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; 
	t=1794452187; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:MIME-Version:Message-ID:Subject:Subject:To:To:Message-Id:Reply-To; 
	bh=d73EyyrfHj5fSu43bGr8mVPdh+lb0OJADX2Cza623hk=; 
	b=E44hfkwX0QDnzdXRwqvH7Myv0YBFpqDh+d8AxW1HEtRpwJpeaGwb743KyThU7Oebh5LhnL9VWxAA99TBDQ1k371jk2zWMM7TubdU48BAo+Cs9fNK5RakJddcwp6RrnANYABI6pfIJGhIC4MttG8UADWN8E398O+bkAL4w0amems=
X-ARC-Authentication-Results: i=1; mx.zohomail.com;
	dkim=pass  header.i=laveeshbansal.com;
	spf=pass  smtp.mailfrom=laveeshb@laveeshbansal.com;
	dmarc=pass header.from=<laveeshb@laveeshbansal.com>
X-DKIM-Signature: a=rsa-sha256; b=eZqX5478TT6lou2kgO+50aJHNaA2lkpdq72NutXZG7RJjMS1DXoyvdO38/7H0seLmtgfYNIWWI/U9ZUOMdSkIGwIHSfeE+lr3/OP8Xo2+S9UoiOP3/kCRdwyLq+22mTKFEPHlPYfs9yMHK+JefGMCBHmBYL4BFRmuKJXMUd5IZ4=; c=relaxed/relaxed; s=zoho; d=laveeshbansal.com; v=1; bh=d73EyyrfHj5fSu43bGr8mVPdh+lb0OJADX2Cza623hk=; h=Content-Description:Content-ID:Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Owner:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Resent-Sender:Resent-Cc:Resent-Date:Resent-To:Reply-To:Resent-Message-ID:Resent-From:Sender:Subject:To:Date:From:Message-Id:Reply-To:Subject:To:Cc;
X-Received: by smtp.zohomail.com with SMTPS id 1794452186807406.49068897116115;
	Wed, 11 Nov 2026 18:56:26 -0800 (PST)
X-Cc: git@vger.kernel.org,
	Junio C Hamano <gitster@pobox.com>
X-Mailer: git-send-email 2.54.0
X-In-Reply-To: <20261020102134.42151-1-aniketgupta3001@gmail.com>
X-Mailing-List: git@vger.kernel.org
X-List-Post: <mailto:git@vger.kernel.org>
X-List-Help: <mailto:git+help@vger.kernel.org>
X-List-Subscribe: <mailto:git+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:git+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:git+owner@vger.kernel.org>
X-Precedence: list
X-ZohoMailClient: External