git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: bug: git-repack -a -d produces broken pack on NFS

From
Linus Torvalds <torvalds@osdl.org>
Date
Apr 27, 2006, 22:18 UTC
Message-ID
<Pine.LNX.4.64.0604271515490.3701@g5.osdl.org>
In-Reply-To
<Pine.LNX.4.64.0604271500500.3701@g5.osdl.org>
On Thu, 27 Apr 2006, Linus Torvalds wrote:
> 
> I wonder if the _pack-file_ itself might be ok, and the problem is an 
> index file corruption.

Hmm. verify_pack() actually checks that the index file matches its own SHA1 earlier, so the index file will have passed (my suggested patch is still correct: the same way we check the index file internal integrity first, we should also check the pack-file internal integrity before we bother to cross-check them with each other).

Anyway, the index file SHA1 check means that it's unlikely that the index file was corrupt. But it would be interesting to hear if the pack-file was internally consistent or not.. (Something that git-pack-check didn't check in your case, because it checked the pack-file against the index file data first).

		Linus
Previous: Junio C HamanoNext: Alex Riesen
Message 6 of 9 in “bug: git-repack -a -d produces broken pack on NFS”
  1. Alex RiesenApr 27, 2006
  2. Linus TorvaldsApr 27, 2006
  3. Junio C HamanoApr 27, 2006
  4. Linus TorvaldsApr 27, 2006
  5. Junio C HamanoApr 27, 2006
  6. Linus TorvaldsApr 27, 2006
  7. Alex RiesenApr 28, 2006
  8. Linus TorvaldsApr 28, 2006
  9. Linus TorvaldsApr 27, 2006

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.