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

[PATCH 0/9] more robustness against pack corruptions

From
Nicolas Pitre <nico@cam.org>
Date
Oct 29, 2008, 23:02 UTC
Message-ID
<1225321372-6570-1-git-send-email-nico@cam.org>

A few months ago I produced a set of patches to allow git to work even in the presence of pack corruption given that the corrupted objects have a good duplicate in the object store. Turns out that this work was rather incomplete and covered only a limited set of cases.

This series extend coverage to all cases I could think about, and make repack-objects able to create a good pack in such conditions to "fix" the corruption without having to perform a full repack.

Yes, this is all about the small and trivial patch I posted a while ago that I intended to repost with a test case. Well, the test failed miserably, resulting in this series before it finally all passed. ;-)

 builtin-pack-objects.c                |   79 +++++++++++++++++-----
 builtin-unpack-objects.c              |    2 +
 cache.h                               |    2 +-
 index-pack.c                          |    2 +-
 pack-revindex.c                       |    3 +-
 sha1_file.c                           |   85 ++++++++++++++++++-----
 t/t5302-pack-index.sh                 |    3 +-
 t/t5303-pack-corruption-resilience.sh |   96 +++++++++++++++++++++++++--
 8 files changed, 223 insertions(+), 49 deletions(-)
Nicolas
Next: Nicolas Pitre
Message 1 of 12 in “more robustness against pack corruptions”
  1. 0/9 more robustness against pack corruptionsNicolas Pitre, Oct 29, 2008
  2. 1/9 close another possibility for propagating pack corruptionNicolas Pitre, Oct 29, 2008
  3. 2/9 better validation on delta base object offsetsNicolas Pitre, Oct 29, 2008
  4. 3/9 make unpack_object_header() non fatalNicolas Pitre, Oct 29, 2008
  5. 4/9 make packed_object_info() resilient to pack corruptionsNicolas Pitre, Oct 29, 2008
  6. 5/9 make check_object() resilient to pack corruptionsNicolas Pitre, Oct 29, 2008
  7. 6/9 make find_pack_revindex() aware of the nasty worldNicolas Pitre, Oct 29, 2008
  8. 7/9 pack-objects: allow "fixing" a corrupted pack without a full repackNicolas Pitre, Oct 29, 2008
  9. 8/9 extend test coverage for latest pack corruption resilience improvementsNicolas Pitre, Oct 29, 2008
  10. 9/9 pack-objects: don't leak pack window reference when splitting packsNicolas Pitre, Oct 29, 2008
  11. Junio C HamanoOct 31, 2008
  12. Nicolas PitreOct 31, 2008

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.