diff options
author | Daniel Zheng <zhengdaniel@google.com> | 2024-02-08 10:54:02 -0800 |
---|---|---|
committer | Daniel Zheng <zhengdaniel@google.com> | 2024-03-26 13:15:37 -0700 |
commit | 018bcd79f17bd42e580e66ce10279bf5c4a8dd2a (patch) | |
tree | 4bbfa8bf3c0414b3d8e1d7bdd36435a6d1a7189f | |
parent | c717f7a3d09a2ea8d239379d97550ce9ad8da912 (diff) | |
download | update_engine-018bcd79f17bd42e580e66ce10279bf5c4a8dd2a.tar.gz |
update_engine: remove temporary estimation
Remove temporary estimation solution. With the updated estimation logic,
we should be able to accurately estimate the cow size
Bug: 322279333
Test: th
Change-Id: I5c7da1fc1b8b47c940413ff9df1bc17f75c15cd4
-rw-r--r-- | payload_generator/cow_size_estimator.cc | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/payload_generator/cow_size_estimator.cc b/payload_generator/cow_size_estimator.cc index eb84d45f..4be7ea21 100644 --- a/payload_generator/cow_size_estimator.cc +++ b/payload_generator/cow_size_estimator.cc @@ -203,9 +203,6 @@ android::snapshot::CowSizeInfo EstimateCowSizeInfo( .compression = std::move(compression), .max_blocks = (partition_size / block_size), .compression_factor = compression_factor}; - // b/322279333 use 4096 as estimation until we have an updated estimation - // algorithm - options.compression_factor = block_size; auto cow_writer = CreateCowEstimator(cow_version, options); CHECK_NE(cow_writer, nullptr) << "Could not create cow estimator"; CHECK(CowDryRun(source_fd, |