Skip to content

android-sparse: Split extents of 4GB or more#325

Open
pelwell wants to merge 1 commit intopengutronix:masterfrom
pelwell:master
Open

android-sparse: Split extents of 4GB or more#325
pelwell wants to merge 1 commit intopengutronix:masterfrom
pelwell:master

Conversation

@pelwell
Copy link

@pelwell pelwell commented Mar 9, 2026

The Android sparse image format uses chunk headers that include the (slightly redundant) overall size of each chunk. The size is stored in a 32-bit integer, limiting the maximum chunk size to 2**32 - 1.

Fix a long-standing To Do by implementing the splitting of extents which are 4GB or larger.

The Android sparse image format uses chunk headers that include the
(slightly redundant) overall size of each chunk. The size is stored in
a 32-bit integer, limiting the maximum chunk size to 2**32 - 1.

Fix a long-standing To Do by implementing the splitting of extents which
are 4GB or larger.

Signed-off-by: Phil Elwell <phil@raspberrypi.com>
@pelwell
Copy link
Author

pelwell commented Mar 9, 2026

FYI, this PR is the result of a real-world failure (https://forums.raspberrypi.com/viewtopic.php?p=2366517#p2366517), albeit one that I have yet to recreate using a real image.

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.

1 participant