diff options
author | Kelvin Zhang <zhangkelvin@google.com> | 2020-10-29 15:51:35 -0400 |
---|---|---|
committer | Kelvin Zhang <zhangkelvin@google.com> | 2020-11-09 09:27:29 -0500 |
commit | 7a2657510c0ff24afe282d8e061916ebac78cf27 (patch) | |
tree | baef92d6829b2f174ff8ea53b31dfb2052c48a37 /scripts/payload_info.py | |
parent | 24599af599acf74b71a555a8eeb827bedcd672b5 (diff) |
Estimate COW image size during OTA generation
Estimate COW image size and put the estimation in OTA metadata. Then VAB
could use this to allocate disk space and prompt the user if more space
required.
Test: create an OTA package
Change-Id: Iaedafcf39af2d1a4d9cae9cd1a642a3cd3a4815c
Diffstat (limited to 'scripts/payload_info.py')
-rwxr-xr-x | scripts/payload_info.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/payload_info.py b/scripts/payload_info.py index 7625ee8e..8343d212 100755 --- a/scripts/payload_info.py +++ b/scripts/payload_info.py @@ -75,8 +75,11 @@ class PayloadCommand(object): DisplayValue(' Number of "%s" ops' % partition.partition_name, len(partition.operations)) for partition in manifest.partitions: - DisplayValue("Timestamp for " + + DisplayValue(" Timestamp for " + partition.partition_name, partition.version) + for partition in manifest.partitions: + DisplayValue(" COW Size for " + + partition.partition_name, partition.estimate_cow_size) DisplayValue('Block size', manifest.block_size) DisplayValue('Minor version', manifest.minor_version) |