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>
Wed, 26 Aug 2015 22:00:38 +0000 (15:00 -0700)
commit1fc67631eedbfba07e005d85aadae6e1b91d8d93
treed225377d408e4d9a37da9920e8c3557f16cb6036
parentd47d8e14880132c42a75f41c8041851797c75e35
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: Ieae5243d461e3f899f613f76a380f6f7c3edb356
(cherry picked from commit 82c47981bd0602a1c7b50dfabf9a6a2412993bae)
tools/releasetools/blockimgdiff.py