OSDN Git Service

Free the stash after its use in BBOTA v2.
authorTao Bao <tbao@google.com>
Thu, 13 Aug 2015 21:44:15 +0000 (14:44 -0700)
committerTao Bao <tbao@google.com>
Thu, 13 Aug 2015 21:44:38 +0000 (14:44 -0700)
commitbb625d2099406c66c0c1da90416fba1cd38ea413
tree086c176531bc514d711050a7706ffbdbae510c86
parent727b462a92635665ce636c63123078a970654480
Free the stash after its use in BBOTA v2.

In BBOTA v2, the stash size computation is inaccurate. A stash will be
used only once, so we deduct its size from stashed_blocks right after
its use. However, the stash doesn't actually get freed until being
overwritten by another stash or destroyed at the end of an update. This
leads to OTA failures due to insufficient space on /cache. This CL
changes the BBOTA v2 script to generate an explicit free right after
its use.

Bug: 23119955
Change-Id: Icdd8352bb0ff778945937c870990a888c7a4d38b
tools/releasetools/blockimgdiff.py