commit | 23ac4042128e47f6fe1ef176e7cb96f907d8e149 | [log] [tgz] |
---|---|---|
author | Tao Bao <tbao@google.com> | Thu May 21 14:09:49 2015 -0700 |
committer | Tao Bao <tbao@google.com> | Tue Jul 14 13:11:49 2015 -0700 |
tree | e2d1aa373e25808c7d8693017e70b0894f1c21d4 | |
parent | 312d1de1bfbd14cc8ee3a78e6caee5f5929a64a8 [diff] |
Assert the stash size when generating OTAs. With block-based OTA v2 and v3, it requires stash space on the /cache partition to back up blocks during an update. We need to ensure that it doesn't exceed the partition size. Since there might be other files on /cache as well, we use cache_size * threshold as the maximum allowed size. The threshold defaults to 0.8, which can be overridden by command line option '--stash_threshold'. Change-Id: I1cce54b82280f803d626a69a087f706343d94bc7