From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=103.168.172.145 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796395185; b=ILgbiu3tfLlEklj+BOxUzB6ptanWmvdrKTdQBLJlApj88HQxasIwA8654lg73ubBEowg A1q8Z6t5smas3olb3waYDs5dFsJWgOrVSNHTEZzOwt5T/keK2BuaVSMom3VN8TlgMcyDO +UbwbeZuajLVgz+BsNMwnHRSZL3Lka0gUKQxhwV1xm1LIIzdWN5Tx87+IOyIlp8zsuxSf qk63Y9LXCBviHrUeJkRJXXi/DEENTXvqfJEQTsNZp7r94/vhqTc4F6mZyza3uWmfJzD/B j5VvkjjBN5w1I58oJ8MX4jyCmVse6ujbrfZdtPo8MPE0g6i+gfwfpP+ZWjrwA6L4Inw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796395185; h=DMARC-Filter:Received:Received:DKIM-Signature:DKIM-Signature: X-DKIM2-Info:DKIM2-Signature:X-DKIM2-Info:Message-Instance: X-ME-Sender:X-ME-Received:X-ME-Proxy-Cause:X-ME-Proxy:Feedback-ID: Received:Received:Date:From:To:Cc:Subject:Message-ID:References: MIME-Version:Content-Type:Content-Disposition:In-Reply-To; bh=DcYsa7CxI+go+5wWYGULP1XvAFn0HnF3VE+7Cm8EuwQ=; b=CZuHuApfVfNfjmUEt6l1sDYMTFRow9N5wM3n3InaHVzFC/9uJYepeSUTRql/L0mIJnK6 SRDsFaNvml8QZu0Z/bgG4CUXAUlO4X+jYApQ9gWvqr3zeXqrikWCQ1NdCbIpgKpO2bjLf v1KabnJH/yqNwbUSqNEwau1yuRDZJljt2EA968JU3XFWjlBTeT+4b2uuyLb4NK2UjuPwb RQh9wpH4eyD7RoyKU8XxAMmXCuKNVIu24HsLUrNTliaD9mKqHikDCEdOChURAVXV27mp/ z7biUhVvKJednFoXQrxMff4H+MnwweK/MUrd2suBfdveqwAG0i/ow/njX1xjTehP6qg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=pks.im; spf=pass smtp.mailfrom=pks.im; dkim=pass header.d=pks.im header.i=@pks.im header.a=rsa-sha256 header.s=fm1 header.b=nCjUYsJT; dkim=pass header.d=messagingengine.com header.i=@messagingengine.com header.a=rsa-sha256 header.s=fm1 header.b=l66pf33G; arc=none smtp.remote-ip=103.168.172.145 Received: from fout-a2-smtp.messagingengine.com (fout-a2-smtp.messagingengine.com [103.168.172.145]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8805F606A322 for ; Fri, 4 Dec 2026 14:39:44 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 8805F606A322 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=pks.im Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=pks.im Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=pks.im header.i=@pks.im header.a=rsa-sha256 header.s=fm1 header.b=nCjUYsJT; dkim=pass (2048-bit key, unprotected) header.d=messagingengine.com header.i=@messagingengine.com header.a=rsa-sha256 header.s=fm1 header.b=l66pf33G Received: from phl-compute-05.internal (phl-compute-05.internal [10.202.2.45]) by mailfout.phl.internal (Postfix) with ESMTP id A67B1EC02E9 for ; Fri, 4 Dec 2026 09:39:43 -0500 (EST) Received: from phl-frontend-03 ([10.202.2.162]) by phl-compute-05.internal (MEProxy); Fri, 04 Dec 2026 09:39:43 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pks.im; h=cc:cc :content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm1; t=1796395183; x=1796481583; bh=DcYsa7CxI+ go+5wWYGULP1XvAFn0HnF3VE+7Cm8EuwQ=; b=nCjUYsJTYsNGnkR3IC5wJpZY4l azObD7EI/ewW08murhLDIoZUke/+QztR8MgHQcoUI5dgIISxopuBYRpIcwCq2Phz 3dj9pMfUanKs19DHKKhArtJrpF6OFJUurUjw0g7wXKzVGDOQw1+mHHfSH/1owHeY BfkwpkVQhJuxOF59GVW4mjAmFEeKlhchIBtr/Z4nUtD0DnQudmunIrLZl2HZAToP Web68kNl0er/mj1O4m3Ztu8Cca8CszKd+BRGbNl/yNlhoaOrQvNfbffZgmHkJU/z 12tgeC4A/XlwdG/TI6MKSY9lN284xrB8t6pOSIGThSzYEXqUViSjoeGo0ccg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t= 1796395183; x=1796481583; bh=DcYsa7CxI+go+5wWYGULP1XvAFn0HnF3VE+ 7Cm8EuwQ=; b=l66pf33G0RLI2vodCKAv2MIEvy0P+aivHh+vCdDXKkfLxLDw3vO kvAH5dCZFK/jSAbXy1fa2fyWPA1si0zJmajiyalilhUiDGcvFSBY2d6DXMh7s7P0 oobfwxFN95tGMEJKnCp+DR3bW8NXTS3pz3k1tNA8CaJcERhh55CBmfGKDN7IWBgT VxfKV9VC0HloDPcSLKx4B6eDyL9b9HK4LpP21JGjL0j2c7QutWcvIz+3Ur0dB3DO JCecdxTPomLW13qER4TiHKVgUXh2IHpJpG2WDcw/UnK6O5T2hM8ZaRaxIOO5G84/ GfdD0EBJm7c82gjKgTqFZDMkomydqcarUEw== X-DKIM2-Info: draft=ietf-dkim-dkim2-spec-09; repo=github.com/dkim2wg/interop; date=2026-11-03; sw=lmtpprox; action=sign d=pks.im a=rsa-sha256; DKIM2-Signature: i=1; m=1; t=1796395183; d=pks.im; mf=PHBzQHBrcy5pbT4=; rt=PGdpdEB2Z2VyLmtlcm5lbC5vcmc+; s=fm1:rsa-sha256:WicGGL0QxXJdiMjqjOGwy4i461Tl8ZF6phXMZl/5/x5Rm8j rsJYvxny3LiNccCQAxLRB8dVDOZg55EOzK2plP+ceOo9RWvrbI+DnBxNUspafNBO n4/MT9q76YlMNjmwxUHauqHLWuU6h3LxrLMarBSiDH6AjsWeShXbizeUiXiPHFeI rO363uEzcVu/X8rqjbRiNFzMICvx7qyvRzwd17bs12nc7k1dqvSdWe+zJufOZ3tG OIoeldhAF9W2MCIb9TZCKSeLhJoepI4C2pL/aVzUO1Gm5OfUjjGK//fInz4RPnn+ nPx9h2VBLUzM+ujSdNwee1+5uuY0qY1EDUJOISg==; X-DKIM2-Info: draft=ietf-dkim-dkim2-spec-09; repo=github.com/dkim2wg/interop; date=2026-11-03; sw=lmtpprox; action=mi-m=1; hc=12; hn=cc,content-disposition,content-type,date,feedback-id,from, in-reply-to,message-id,mime-version,references,subject,to; Message-Instance: m=1; h=sha256:m3THL5EFFfnTZkuHxIi6W9TqJBSevfWrEvJTTC6PZzU=:yMXUhxlDvvecElbcreSYzhnxFJv8ahwMVQhbZbtljSk=; X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: dmFkZTFsQ3n7t1LZ9PbtTCfyFpjkq4YTYZFaQsOos8dUKKw6fhGmuWUqZ6nteHgELPwZrd Mewe17ZQms5FygawtG8+Bd77eRYbI0eazKFyFKO29uZ+X7Vqi0Ul922kC4aDPniaP6Me/t OsBqmU670P/l80niQARbIXnACwDqyhQt7np1NLLgmECvdyuh7fdD0/9O3nm3vU77rW/nt3 xR3dlq0TEeOk6witAe7eDkKhXk5RFLx12Ci58EfWUUL1U4j8EOrdt2QSEBE+cekbWVzhnr tF0RvQ/++G74hhWjCQ6CFfDaRrcXqHfQvh3OykfiFvlmpd1voCqeBC1zlnCzfNjah5lVb6 nJQyVtSk0ICo7h5h8KmVlMQWNjMIsxH/uMcvW+Mtzr/c8sYuUqkSICwQKzNEpNn7w9xXVk e9nneX1o5yDwvl4HnjXrcqLA+8jFciLRJrckEAfX8UUSSjoCVRxhCQsZkxqQUf2gRow3y0 GS9PY7udtmFqsdtyWGcLJGQF95YyBKVIq8KSCpVzwYKN4s30OeGY68t2KSpOwWC2ouBzJl l8pnPjzFmWJwKaWrHp8bSjCFXFSGhpm2gE04uUilKma8Pk1Che275ulHHHXTXuk64cOpC4 ByicI7f4pnTIGY8aJM35XON6N1Ydmxe9VAYDk8tVvGw/6q7T3vjthxHuLJTQ X-ME-Proxy: Feedback-ID: i197146af:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 4 Dec 2026 09:39:42 -0500 (EST) Received: by mail (OpenSMTPD) with ESMTPSA id 1a85ddbf (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Fri, 4 Dec 2026 14:39:41 +0000 (UTC) Date: Fri, 4 Dec 2026 15:39:38 +0100 From: Patrick Steinhardt To: Daniel Scherzer via GitGitGadget Cc: git@vger.kernel.org, Daniel Scherzer Subject: Re: [PATCH] reftable: document first ref block start for version 2 headers Message-ID: References: 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-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Tue, Nov 24, 2026 at 01:02:52AM +0000, Daniel Scherzer via GitGitGadget wrote: > From: Daniel Scherzer > > The existing documentation assumed that headers were always 24 bytes, which > is no longer the case following the introduction of version 2 headers, > which are 28 bytes. Update the "First ref block" section of the reftable > documentation to indicate that the offset for the start of the first ref > block depends on the version of the file header. Yeah, indeed. > diff --git a/Documentation/technical/reftable.adoc b/Documentation/technical/reftable.adoc > index dd0b37c4e3..b277c4afe2 100644 > --- a/Documentation/technical/reftable.adoc > +++ b/Documentation/technical/reftable.adoc > @@ -256,11 +256,12 @@ First ref block > ^^^^^^^^^^^^^^^ > > The first ref block shares the same block as the file header, and is 24 > -bytes smaller than all other blocks in the file. The first block > -immediately begins after the file header, at position 24. > +bytes smaller than all other blocks in the file for version 1 headers, and > +28 bytes smaller than all other blocks in the file for version 2 headers. > +The first block immediately begins after the file header, at position 24 or 28. > > If the first block is a log block (a log-only file), its block header > -begins immediately at position 24. > +begins immediately at position 24 or 28. Yup. We already document the two different header versions a couple lines before this hunk. For those wondering: the additional four bytes are used for the hash ID, which is "sha1" or "s256", respectively. In any case, the changes look good to me, thanks! Patrick