commit | 8988d6b19a0c08255a992c2c84ca3fb39beb590e | [log] [tgz] |
---|---|---|
author | Kelvin Zhang <zhangkelvin@google.com> | Wed Sep 01 23:36:51 2021 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Wed Sep 01 23:36:51 2021 +0000 |
tree | 9b8fca888360aef600a11dd38e3dd3188cad347e | |
parent | 0525ba2f86b1b72d10ec4a78123ba078510750f6 [diff] | |
parent | 67378efab6dc26634dfd354bc11f8934a8114ead [diff] |
Include sequence op in cow size estimate am: fc2afd4923 am: a9a312bfca am: 67378efab6 Original change: https://android-review.googlesource.com/c/platform/system/update_engine/+/1816336 Change-Id: I7b9debb296aaf5677abf6778ee9e803f8478f16c
diff --git a/payload_generator/cow_size_estimator.cc b/payload_generator/cow_size_estimator.cc index 0578ada..36d6526 100644 --- a/payload_generator/cow_size_estimator.cc +++ b/payload_generator/cow_size_estimator.cc
@@ -26,6 +26,7 @@ #include "update_engine/common/cow_operation_convert.h" #include "update_engine/common/utils.h" #include "update_engine/update_metadata.pb.h" +#include "update_engine/payload_consumer/vabc_partition_writer.h" namespace chromeos_update_engine { using android::snapshot::CowWriter; @@ -162,6 +163,7 @@ // emits 1 label for every op. cow_writer->AddLabel(2); } + VABCPartitionWriter::WriteMergeSequence(merge_operations, cow_writer); // TODO(zhangkelvin) Take FEC extents into account once VABC stabilizes return true; }