summaryrefslogtreecommitdiff
path: root/common/dynamic_partition_control_stub.cc
diff options
context:
space:
mode:
authorTianjie <xunchang@google.com>2020-06-30 12:26:25 -0700
committerTianjie Xu <xunchang@google.com>2020-07-09 20:15:08 +0000
commit24f960986b1337f14eb8e86382cb62aed5d1153c (patch)
treeea47bdb983a0b692fc02fe2b5e84029d7d6002f7 /common/dynamic_partition_control_stub.cc
parentd2da7b1990e0fee1c99bf64aa562cef572aaa061 (diff)
Verify the extents for untouched dynamic partitions during partial update
For partial updates, the metadata for untouched dynamic partitions are just copied over to the target slot. So, verifying the extents of these partitions in the target metadata should be sufficient for correctness. This saves the work to read & hash the bytes on these partitions for each resumed update. Bug: 151088567 Test: unit tests pass, apply a partial update Change-Id: I9d40ed2643e145a1546ea17b146fcdcfb91f213f
Diffstat (limited to 'common/dynamic_partition_control_stub.cc')
-rw-r--r--common/dynamic_partition_control_stub.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/common/dynamic_partition_control_stub.cc b/common/dynamic_partition_control_stub.cc
index cde36afc..5a8ca434 100644
--- a/common/dynamic_partition_control_stub.cc
+++ b/common/dynamic_partition_control_stub.cc
@@ -76,4 +76,11 @@ bool DynamicPartitionControlStub::GetDeviceDir(std::string* path) {
return true;
}
+bool DynamicPartitionControlStub::VerifyExtentsForUntouchedPartitions(
+ uint32_t source_slot,
+ uint32_t target_slot,
+ const std::vector<std::string>& partitions) {
+ return true;
+}
+
} // namespace chromeos_update_engine