OSDN Git Service

Revise stash for BBOTAs when needed.
authorTao Bao <tbao@google.com>
Mon, 17 Aug 2015 16:45:13 +0000 (09:45 -0700)
committerTao Bao <tbao@google.com>
Mon, 17 Aug 2015 17:21:49 +0000 (10:21 -0700)
commit82c47981bd0602a1c7b50dfabf9a6a2412993bae
tree3b80008d50051cb6a8617f8c932027e9ca16dbcb
parent2e08cb6e1bf90b0950c875132d2bf37b71d03fbb
Revise stash for BBOTAs when needed.

When generating incremental BBOTAs (v2 and above), we need to ensure
that the needed runtime stash is below the given threshold. If it's
running out of space on /cache, we replace the command that uses a
stash with a "new" command instead.

This may increase the OTA package size, since it is carrying more full
blocks instead of patches. It gets even worse for large files that span
a number of blocks, because currently we will store all the blocks for
the file as "new" blocks if stashing cannot be satisfied. We may further
optimize by splitting them into smaller chunks so that most of them can
still be stashed.

Bug: 22430577
Change-Id: I5a49e361adc7d3d41de2e9c08ee9b08c1e6c091a
tools/releasetools/blockimgdiff.py