diff options
author | Tianjie <xunchang@google.com> | 2020-08-24 16:34:35 -0700 |
---|---|---|
committer | Tianjie <xunchang@google.com> | 2020-08-31 15:32:28 -0700 |
commit | 31ad11922cd966772271c76a6297969b6034952e (patch) | |
tree | 3a944232bf0664f6856bd7ed43618ce61b838596 /scripts/update_payload/format_utils.py | |
parent | 87af6c083dca39250c29c9ad3a0a6627891eccb7 (diff) |
Implement the topology sort in CreateCowMergeOperation
Generate a sequence of COW_COPY operations. The extents in these
operations won't be written as raw bytes in snapshots. Instead,
they will read from the source partitions.
So it's important to make sure no read after write happens on the
source partitions, similiar to the inplace update. If the topology
sort isn't possible due to cycles, we will omit some blocks to
break the cycles. And these blocks will be carried as raw bytes in
cow instead.
Bug: 162274240
Test: generate a payload, unittests pass
Change-Id: If4866704459b919d4bc09be48286b3e321b70497
Diffstat (limited to 'scripts/update_payload/format_utils.py')
0 files changed, 0 insertions, 0 deletions