summaryrefslogtreecommitdiff
path: root/scripts/update_payload/format_utils_unittest.py
diff options
context:
space:
mode:
authorKelvin Zhang <zhangkelvin@google.com>2021-02-26 13:35:34 -0500
committerKelvin Zhang <zhangkelvin@google.com>2021-03-08 21:41:59 +0000
commit4430ea57a7e53e6b3556c2e8591931131e2e8812 (patch)
tree2a5d4fa51f6ea3f640e242c36a8d7d6c0c96051e /scripts/update_payload/format_utils_unittest.py
parent59724d8ad04841f10cce40512862c90616860ba8 (diff)
Only skip CowCopy ops with same src/dst block
When installing an VABC package, update_engine will omit COPY operations whose src and dst blocks are the same. As any untouched block during update is assumed to hold same content as the one in source slot. There's an additional complication: When applying a VABC update, update_engine might selectively convert some COPY operation to REPLACE operation to avoid merge conflicts. Current code skips these converted REPLACE operation if src/dst block are the same. But this optimization should be handled on the merge sequence generation side instead of apply side. Therefore, we are changing this to only skip COPY operations. This might slightly increase COW size, but once we implement proper optimization on merge sequence generation side COW size should be the same as before. Test: th Change-Id: I07f86c9fbcae48ba0dca6a4482fdbaea4a967fc3
Diffstat (limited to 'scripts/update_payload/format_utils_unittest.py')
0 files changed, 0 insertions, 0 deletions