Skip to content

repack: handle --keep-pack, --max-pack-size for geometric repacks

Taylor Blau git 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3repack: respect --keep-pack with geometric repackbuiltin/repack.c t/t7703-repack-geometric.sh+63 -110 replies
2/3t7703: demonstrate object corruption with pack.packSizeLimitt/t7703-repack-geometric.sh+47 -03 replies
3/3builtin/repack.c: ensure that `names` is sortedbuiltin/repack.c t/t7703-repack-geometric.sh+3 -20 replies

Reviews trailers per patch

None of the 3 patches has a Reviewed-by or Acked-by.

PatchTaylor BlauVictoria Dye
1/3Co-authored-by
2/3
3/3Co-discovered-by

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/3] repack: handle --keep-pack, --max-pack-size for geometric repacks

This series fixes two issues that Victoria and I noticed while working on an unrelated issue yesterday.

- The first patch comes from Victoria's earlier submission[1], and addresses an issue where packs specified as kept via the --keep-pack option could potentially be removed (without rewriting their objects) during a --geometric repack.

The first patch is Victoria's alone, with some minor fixups applied from my review in [2]. It's included in this series since it's related, and avoids any conflicts when merging.

- The latter two patches are mine, and address an issue where specifying a --max-pack-size value during a --geometric repack could result in object loss because of a false positive in our "did we write a pack with this name?" check (which can occur when the list of packs we wrote isn't sorted).

The first of these two patches demonstrates the issue (done in a separate patch, since the scenario is quite involved), and the second patch fixes the bug.

Thanks in advance for your review.

[1]: https://lore.kernel.org/git/[email protected]/
[2]: https://lore.kernel.org/git/[email protected]/

Taylor Blau (2):
t7703: demonstrate object corruption with pack.packSizeLimit builtin/repack.c: ensure that names is sorted

Victoria Dye (1):
repack: respect --keep-pack with geometric repack

 builtin/repack.c            | 49 ++++++++++++++++++------
 t/t7703-repack-geometric.sh | 75 +++++++++++++++++++++++++++++++++++++
 2 files changed, 112 insertions(+), 12 deletions(-)
Signature · 1 line
2.36.1.94.gb0d54bedca