diff options
author | Yifan Hong <elsk@google.com> | 2019-12-04 13:12:01 -0800 |
---|---|---|
committer | Yifan Hong <elsk@google.com> | 2019-12-04 14:37:54 -0800 |
commit | 6eec995ac79c66741e665fce9a30613844d59384 (patch) | |
tree | 83d92904843c07d62b1e930253883dbd7cba4681 /common/dynamic_partition_control_interface.h | |
parent | 8d3843144aa92a77b6bcadea6e0158fa4962f907 (diff) |
Only skip operation on snapshot partitions
On Virtual A/B devices, don't skip SOURCE_COPY on
static partitions.
Test: update_engine_unittest
Test: incremental update to self
Change-Id: I5c93b501e09f50f559151eb77d83052373c90d0d
Diffstat (limited to 'common/dynamic_partition_control_interface.h')
-rw-r--r-- | common/dynamic_partition_control_interface.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/common/dynamic_partition_control_interface.h b/common/dynamic_partition_control_interface.h index 39daf75c..c17bafbb 100644 --- a/common/dynamic_partition_control_interface.h +++ b/common/dynamic_partition_control_interface.h @@ -50,8 +50,12 @@ class DynamicPartitionControlInterface { // Return the feature flags of Virtual A/B on this device. virtual FeatureFlag GetVirtualAbFeatureFlag() = 0; - // Checks if the provided InstallOperation can be skipped on this device. - virtual bool ShouldSkipOperation(const InstallOperation& operation) = 0; + // Checks if |operation| can be skipped on the given partition. + // |partition_name| should not have the slot suffix; implementation of + // DynamicPartitionControlInterface checks partition at the target slot + // previously set with PreparePartitionsForUpdate(). + virtual bool ShouldSkipOperation(const std::string& partition_name, + const InstallOperation& operation) = 0; // Do necessary cleanups before destroying the object. virtual void Cleanup() = 0; |