Article View: linux.kernel.git
Article #4082Re: [GSoC PATCH v2] fsck: report the number of objects in the connectivity message
From: Aniket Gupta
Date: Sun, 29 Nov 2026 19:33
Date: Sun, 29 Nov 2026 19:33
51 lines
12601 bytes
12601 bytes
> Micronits. > > - "which is the number of buckets" is missing "the". > > - What holds the objects is not a "hash" but a "hashtable". > > - In an empty repository, we have no hash buckets, so the capacity > of the hashtable exactly matches the number of objects in that > case. "In a non-empty repository, the hashtable is larger than > what it holds" would be more accurate. Will fix all in v3. > A report on rebasing is incomplete without an explanation of the > reason why you had to rebase (what you wanted to achieve by > rebasing). Apologies for missing that. In v1 the new tests were added at the end of t1450-fsck.sh. The test added by a9456705f1 (pack-check: fix bogus corruption report with core.bigFileThreshold, 2026-10-14) is now the last one there, so v1 no longer applied. I rebased to resolve that conflict myself. > Another small change not mentioned in the proposed log message is to > report the number of objects using "%u". Will be done in v3. > Minor nit. "This is smaller than the value get_max_object_index() > returns when the object hashmap is not empty, as that counts ..." Will change the comment. > I wonder if you can just 'git add' a regular file in a freshly > created repository without committing to get the same effect? Agreed. It prints "Checking connectivity (1 object)". Will use that in v3. > The code is prepared to have up to 2 billion objects in an object > pool on 32-bit machines, as the type of the .nr_objs member [...] is > 'int' [...]. Something to think about later after the dust settles > (#leftoverbits). Ack. I will check after this one. > Optional cleanup with test_when_finished "rm -rf ..." would match > the test right above, though other tests in this file omit it too, Will be done in v3.
Technical Details
Message-ID:
<20261129193327.56928-1-aniketgupta3001@gmail.com>Path:
mbox-mo1.pugleaf.net!news-wdc.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!git+bounces-76638-linux-kernel-git=dewy.ruReferences:
<20261020102134.42151-1-aniketgupta3001@gmail.com> <20261129100214.46634-1-aniketgupta3001@gmail.com> <xmqqbj77h2sl.fsf@gitster.g>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-wdc.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!git+bounces-76638-linux-kernel-git=dewy.ru
From: aniketgupta3001@gmail.com (Aniket Gupta)
Newsgroups: linux.kernel.git
Subject: Re: [GSoC PATCH v2] fsck: report the number of objects in the connectivity message
Date: Mon, 30 Nov 2026 01:03:27 +0530
Organization: Usenet Network
Message-ID: <20261129193327.56928-1-aniketgupta3001@gmail.com>
References: <20261020102134.42151-1-aniketgupta3001@gmail.com> <20261129100214.46634-1-aniketgupta3001@gmail.com> <xmqqbj77h2sl.fsf@gitster.g>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
logging-data="1246013"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:EBjGXcoHmiZ+6glaJxkUZ6WYBds= sha256:4TWw98/JDbRnyoYRsrmvzixdzBznelnBaomlu2wQuAY=
sha1:jsVRSk7RPtUdcQ86zJgeD7UQXJw= sha256:R0FkkjEkK+Y6U4qy6o59BWlUxNNdAgSkBWp7LMwCMrE=
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 4C9F4125FAC; Sun, 29 Nov 2026 22:33:51 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -1.948
X-Spam-Status: No, score=-1.948 tagged_above=-9999 required=6.31
tests=[DCC_CHECK=1.1, DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1,
DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.001,
FREEMAIL_FROM=0.001, 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, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
header.d=gmail.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 pkqbn6B9DDYk;
Sun, 29 Nov 2026 22:33:48 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=git+bounces-76638-linux-kernel-git=dewy.ru@vger.kernel.org; receiver=<UNKNOWN>
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=gmail.com
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
by mail.dewy.ru (Postfix) with ESMTPS id B6836125FAA; Sun, 29 Nov 2026 22:33:38 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
by sea.lore.kernel.org (Postfix) with ESMTP id 4FC3523070; Sun, 29 Nov 2026 19:33:36 +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=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
t=1795980816;
b=3v5BMrvjer5cMAELXUJgM867DilWXZdX8wbC9P5kvp7VRvI/0Qdst8TBumg8WyOrUZIO
N1jwMnP+g4cnENA83oHl+ixC2TDHoH6ZpXSToHiWBgSG4JS0r5VPQeppc8cSJ32oP1CbY
JJbXFR/BtKk+c5DV0r2xc44hXucgK0OYcvTz00p9XL5MTNW/Y37GK3Znb2NpNoe5Q3z19
so8LQF0JGisgBNjufBgjWBxafM5oJLJ0U0oxSLTs67X0dekXhTZFJ7DtrGFrXeoVSDlG5
0SvbikeDQfyRFNA1UYG8/TCx2i2x3aKAUURpdX2dieVVIOsW7xek+1P41gZU5HCcNPw==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1795980816;
h=X-Original-To:Received:DMARC-Filter:Received:DKIM-Signature:
X-Google-DKIM-Signature:X-Forwarded-Encrypted:X-Gm-Message-State:
X-Gm-Gg:X-Received: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;
bh=tgMp1/I1j42nQzF0ZI1fBD86StC+nRav4r1ZLvK8i/g=;
b=FaPNmUslPFXZkYx1gPQH5JBdBnzA672EABFxCtqGdOsqn/3xTPBzbAUq+NmhifJvXb6J
8SAqusli8PqtvCw4kNmYWwxu5d7PI/VI/Ptp1d9bjLHAEw3UqKr2mTJW8WlKu4p4IlU8x
JWJVT2MOLBlxaw3sMKsr02diT3O3WUxVnalLnpv9c2LlQrQixrYAiPz02xwF+ONXeUO6L
1qgE9+nakg7nBt5v9BwgfBitMXH76s7FjHhL+ajndjY9DX6EGps+/RVPyb9Qk/SqT4wNO
DAqd6uYrmaL2at44nYXEe+MN/3MhfExW8FqNN5Uatw6CmUK4rzhqpMyUKCmyttVFvXg==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org;
dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b="XOvysx/Z";
dmarc=pass header.from=gmail.com;
spf=pass smtp.mailfrom=gmail.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 0C005606A32C;
Sun, 29 Nov 2026 19:33:36 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=XOvysx/Z
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.214.175
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
t=1795980815;
b=MnQO7CcKD9r/o1tozFO6KX6bKT33rGO+/brY5opLCKyjK/mm8mlXOpy4ReSJdQpu9KNC
YErvEwjo3WJGzgyXB8BJjfBIhZsIrD6EetJ1c2RFbgN49+o/Pu8dxX+0rvnUigDSaHrKO
jl1PjXioR+Cyeok/KUScV6hHwaBqaMISMUgS0zHDbtrX1kue+HVTBB1nTqTSq3gXJMdQD
HBReTwDi3WooK+gY7mFUd2P2g9w0UWEQAhzmzPVLJFbmqhSUuUkCWgg+POT2Iw1M9RuUP
nk7PjPfB8bTem7gGzSu/LApn6F8baYEKY8yomOlUMwae6214j8DWC9vMtQRjL3EDLjw==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1795980815;
h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature:
X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received:
From:To:Cc:Subject:Date:Message-ID:X-Mailer:In-Reply-To:References:
MIME-Version:Content-Transfer-Encoding;
bh=tgMp1/I1j42nQzF0ZI1fBD86StC+nRav4r1ZLvK8i/g=;
b=tHCbJrISfDTxHvol9HO0uzjWra86utZ67ZJTLFZonVsAN98P+drg3PchDMln7T26GPeM
6XLkj2TyfV1Q7y6OexwebWvBPoriPSffJkLr9hWDBYxLya+pw+LAD7bc8ZepoQ5p+7arP
2SsivpXvX57S8UC80TqOnHVAM6w3cnYt68MlEFfXUJiomVZ7FdcBYh8LnD4MUBv4xSrjL
+pcIVSP/KUJziHzsfFO7bWQWu6qWsVusdvRlLk/OYcO1D8YvK+rRA2o6iMfREsvNZ4pW3
nMZaoDfdHWljeWWcAsnngcDzGjDIIZYuhUr9apPkVoyBvXm1UNlMBlS7LtUrKUO9umw==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org;
dmarc=pass header.from=gmail.com;
spf=pass smtp.mailfrom=gmail.com;
dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b="XOvysx/Z";
arc=none smtp.remote-ip=209.85.214.175
X-Received: from mail-pl1-f175.google.com (mail-pl1-f175.google.com [209.85.214.175])
(using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)
key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256)
(No client certificate requested)
by smtp.subspace.kernel.org (Postfix) with ESMTPS id D4436606A31C
for <git@vger.kernel.org>; Sun, 29 Nov 2026 19:33:34 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org D4436606A31C
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com
X-Received: by mail-pl1-f175.google.com with SMTP id d9443c01a7336-2f0458cc9easo75794115ad.3
for <git@vger.kernel.org>; Sun, 29 Nov 2026 11:33:34 -0800 (PST)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20260707; t=1795980813; x=1796585613; darn=vger.kernel.org;
h=content-transfer-encoding:mime-version:references:in-reply-to
:message-id:date:subject:cc:to:from:from:to:cc:subject:date
:message-id:reply-to:content-type;
bh=tgMp1/I1j42nQzF0ZI1fBD86StC+nRav4r1ZLvK8i/g=;
b=XOvysx/ZLqXmTrR2XZ5DgSZrlSKQ0Tg55eLGFkfvbFFtG9ePhAQp4bfYZkZ1WHc7zV
3trZm1vlG5VUqCpURuqCbY8X1C15TPlKtCTT0GcSMbFtOjiblMeWB5hPewb9oAOPlg/3
Mgyq4nqFi3mRcKhMamZC6ghhfnABTVInYa44LmbrZ1uksYpyVbR6Q5gJqrIn+9Q07jtP
Ap8hOjuHghM2x2QUVH+p0E/jR3/zTNESz8S1thlR/a053sgK27kClQwtbDLwSXGaYqQe
tssVUWaRM2GJT9hDPXQ8pAAPDTAmk6nxtQYSq0uBsLLsueUMwI1LLq3HSrlb9p40AQ7n
zTfA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20260707; t=1795980813; x=1796585613;
h=content-transfer-encoding:mime-version:references:in-reply-to
:message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from
:to:cc:subject:date:message-id:reply-to:content-type;
bh=tgMp1/I1j42nQzF0ZI1fBD86StC+nRav4r1ZLvK8i/g=;
b=POY+4IpVIehPo8Irzc2XMvlqPvXR+U594dCqFGtpgwBwOuBF4bq1S81BCtq+hBdOhL
L7YNS0yDMPTUiKUbQaRL6SsKhHLpzqQZQh2+1Z++sO9g9RRFsVLRUdP3laFqP3X0Gxgf
TlM9NZsZOw3FJLO0zH3/YM7ns25URUbh5bTrW6x7GEzSOI9IcI2S++9ksHlJ83K6bjYY
lXNFLDTRXOb5OEEH4qXUPKQGyhnJKCIAbo7zkUeyRMTps0Ff1egIpbTvYwGyIDvTX/ow
BC1N7dpBEfxobO7IHbG/uUb62sgGj3XrpgMivkWSQkwy0Ue/YGRS9FV72k67JS0lkKD1
yY3Q==
X-Forwarded-Encrypted: i=1; AL+hErFsM7DDL5Rw7hRFSjbK55pY7N4xtyMqOxOm/Ooq4ZMsgRrhmO9YEvzDdqDiEA9ZPrxWPVw=@vger.kernel.org
X-Gm-Message-State: APuU4Z8fWvsQZkJk0ICgFgssKgaQKXYIsVDMfI4ZmVcZoEMqrQbTWLuj
Q8sonyc0DSxRA2JZ4D/o0JgiqGLa+CTRp/RN1t1a4j6WzoKbesJXoa/F
X-Gm-Gg: AZFdTZdMC65Fbgx2IRBeJB2zuPbDXkh7lFFbo3DsFJRZVX3j9gGELa0ejgIk1G1lnl8
TFfn7a8b74cfznZbl+6I159KL746EpE0w8T7oUyA7TaOAuu1+So+uZMG+JJxEicnj3tcTmi5GRL
Qm+I3c/KmwBDBBpc9ErG4+CaW7hM/Wov3ph4U3xeFg2AJOC3Y2LyAAXreCfOT+VH2tdllrrRbfH
K2xDu67oPE9sMrWDIZSQxzpi2bZfcpf7LFIVGE99KnuHhOAKu0B6wGBeO3VPAD1U1tIJaUvqx3A
pwreAjeXi5ebE0CfCEemcuVUDEflHar6EvJIh0ZjZWj2YlO/RgUilcpffmvw6ZaIRp5dhxF1CV3
xTRXM/TJYF+xTuGplG87e38ys8KnffiD6kmrQdrP4isP9wa2Sed6OCy98URA90gNc4/+72k9RmF
YM5kZ008rYK28xFQCa4VxkX2cR/cJqKnon5UaLwwDEla9kxewHo+KFPQ2cmeAbDu5gomtwiASMr
0Vrpj3oIOxcMGGEJWY1pEc9ionQQTVojhIzpnS7Db3Q0nU8Rl1gQ+wK534IfLkU+bJt5so6Y1Mm
8CYNfP7Rli1lXIk9Wv8DVngm96lnFvTJUDnsQQkDFdy+fRhElWgUx+MC5gCUvWKadAViceQcj6z
0FpFbxRPHTCkENV2w+2hU
X-Received: by 2002:a17:903:19cb:b0:2ed:2c40:6273 with SMTP id d9443c01a7336-2f03f1c08c5mr322827725ad.40.1795980813306;
Sun, 29 Nov 2026 11:33:33 -0800 (PST)
X-Received: from localhost.localdomain ([223.190.82.63])
by smtp.gmail.com with ESMTPSA id d9443c01a7336-2f03f1482c3sm149310725ad.73.2026.11.29.11.33.30
(version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256);
Sun, 29 Nov 2026 11:33:32 -0800 (PST)
X-Cc: Laveesh Bansal <laveeshb@laveeshbansal.com>
X-Mailer: git-send-email 2.54.0
X-In-Reply-To: <xmqqbj77h2sl.fsf@gitster.g>
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