Implement cow estimator with XOR enabled
Test: th
Bug: 177104308
Change-Id: Ifa59d750f9ec80de532044e534eeb1bb32b3aa7d
diff --git a/aosp/cow_converter.cc b/aosp/cow_converter.cc
index 8c641b8..3d314c4 100644
--- a/aosp/cow_converter.cc
+++ b/aosp/cow_converter.cc
@@ -60,11 +60,14 @@
android::snapshot::CowWriter cow_writer{
{.block_size = static_cast<uint32_t>(block_size), .compression = "gz"}};
TEST_AND_RETURN_FALSE(cow_writer.Initialize(output_fd));
- TEST_AND_RETURN_FALSE(CowDryRun(target_img_fd,
+ TEST_AND_RETURN_FALSE(CowDryRun(nullptr,
+ target_img_fd,
partition.operations(),
partition.merge_operations(),
block_size,
- &cow_writer));
+ &cow_writer,
+ partition.new_partition_info().size(),
+ false));
TEST_AND_RETURN_FALSE(cow_writer.Finalize());
return true;
}