borg2: repoindex improvements#6705
Merged
ThomasWaldmann merged 3 commits intoborgbackup:borg2from Jun 14, 2022
Merged
Conversation
Closed
4bf1be7 to
696f8aa
Compare
…ries This saves some segment file random IO that was previously necessary just to determine the size of to be deleted data. Keep old one as NSIndex1 for old borg compatibility. Choose NSIndex or NSIndex1 based on repo index layout from HashHeader. for an old repo index repo.get(key) returns segment, offset, None, None
this fixes a strange test failure that did not happen until now: it could not read the MAGIC bytes from a (quite new) segment file, it just returned the empty string. maybe its appearance is related to the removed I/O calls.
use this to query or set/clear flags in the "extra" word. also: remove direct access to the "extra" word, adapt tests.
696f8aa to
e5ea016
Compare
Closed
snorkelopsstgtesting1-spec
pushed a commit
to snorkel-marlin-repos/borgbackup_borg_pr_6705_71411a73-d907-4e4b-bd68-b430eea13d6c
that referenced
this pull request
Oct 22, 2025
Original PR #6705 by ThomasWaldmann Original: borgbackup/borg#6705
snorkelopstesting4-web
added a commit
to snorkel-marlin-repos/borgbackup_borg_pr_6705_71411a73-d907-4e4b-bd68-b430eea13d6c
that referenced
this pull request
Oct 22, 2025
Merged from original PR #6705 Original: borgbackup/borg#6705
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
improvements:
extrauint32 to the repo indexextraword