update_engine: update op buf size with vabc_none
If --vabc_none flag is passed, then op buffer size will need to be
increased since compression is not used. Let's increase this to the
upper limit of blocks per partition.
Test: th
Change-Id: I612caab96a08eb101bef7949b61150079b6afadc
diff --git a/payload_consumer/delta_performer.cc b/payload_consumer/delta_performer.cc
index dfce92a..b4a3970 100644
--- a/payload_consumer/delta_performer.cc
+++ b/payload_consumer/delta_performer.cc
@@ -535,6 +535,9 @@
// and no way for user to retry OTA
partition.set_estimate_cow_size(new_cow_size + (1024 * 1024 * 2) +
cow_metadata_size + label_ops_size);
+ // Setting op count max to 0 will defer to num_blocks as the op buffer
+ // size.
+ partition.set_estimate_op_count_max(0);
LOG(INFO) << "New COW size for partition " << partition.partition_name()
<< " is " << partition.estimate_cow_size();
}