From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.214.175 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== 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== 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 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 ; Sun, 29 Nov 2026 19:33:34 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org D4436606A31C Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com 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 Received: by mail-pl1-f175.google.com with SMTP id d9443c01a7336-2f0458cc9easo75794115ad.3 for ; Sun, 29 Nov 2026 11:33:34 -0800 (PST) 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) 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) From: Aniket Gupta To: Junio C Hamano , git@vger.kernel.org Cc: Laveesh Bansal Subject: Re: [GSoC PATCH v2] fsck: report the number of objects in the connectivity message Date: Mon, 30 Nov 2026 01:03:27 +0530 Message-ID: <20261129193327.56928-1-aniketgupta3001@gmail.com> X-Mailer: git-send-email 2.54.0 In-Reply-To: References: <20261020102134.42151-1-aniketgupta3001@gmail.com> <20261129100214.46634-1-aniketgupta3001@gmail.com> X-Mailing-List: git@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 > 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.