Skip to content

Even more ostree work#340

Merged
cgwalters merged 9 commits into
mainfrom
even-more-ostree
Jul 1, 2026
Merged

Even more ostree work#340
cgwalters merged 9 commits into
mainfrom
even-more-ostree

Conversation

@alexlarsson

Copy link
Copy Markdown
Contributor

This is mainly some cleanups from comments outstanding in previous MRs.

There is one real change, which is the changing of offsets in the commit splitstreams to be divided by 8. I think its fine to do this even though this is a format change. I don't think we're guaranteeing this to be stable yet.

This is mainly useful when testing non-delta codepaths.

Signed-off-by: Alexander Larsson <alexl@redhat.com>
Signed-off-by: Alexander Larsson <alexl@redhat.com>
There is no need to make this any special, its just an essentially
random value.

Signed-off-by: Alexander Larsson <alexl@redhat.com>
Signed-off-by: Alexander Larsson <alexl@redhat.com>
Signed-off-by: Alexander Larsson <alexl@redhat.com>
Signed-off-by: Alexander Larsson <alexl@redhat.com>
Signed-off-by: Alexander Larsson <alexl@redhat.com>
Signed-off-by: Alexander Larsson <alexl@redhat.com>
This changes the way we store data offsets to be byte offset / 8, which
makes us able to store 32GB of data instead of 4GB, with no change in file
size.

This is an incompatible change, but I don't think we have any real
users yet, so is fine.

Also add some more checks to DataRef::new to ensure size and offset are valid.

Signed-off-by: Alexander Larsson <alexl@redhat.com>
@cgwalters cgwalters added this pull request to the merge queue Jul 1, 2026
Merged via the queue into main with commit 269ea36 Jul 1, 2026
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants