diff options
author | Yifan Hong <elsk@google.com> | 2019-11-07 11:00:39 -0800 |
---|---|---|
committer | Yifan Hong <elsk@google.com> | 2019-11-13 03:12:37 +0000 |
commit | 02e2b6b80ce870f9d0fbf9c9f048ab9b11bbc51f (patch) | |
tree | 9560b0356c66b9ed5c0b5a5fb469b888bd4cb643 /common/boot_control_interface.h | |
parent | daac732e42f9d3423536c226d7e0913dad9ec980 (diff) |
Remove BootControlInterface::PreparePartitionsForUpdate
Replace with GetDynamicPartitionControl()->PreparePartitionsForUpdate(
GetCurrentSlot(), ...).
Test: update_engine_unittests
Change-Id: Ib03ee97a25727a9292cbb0c9aab5dbe75a2b6913
Diffstat (limited to 'common/boot_control_interface.h')
-rw-r--r-- | common/boot_control_interface.h | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/common/boot_control_interface.h b/common/boot_control_interface.h index 2f8e9e3e..1242393a 100644 --- a/common/boot_control_interface.h +++ b/common/boot_control_interface.h @@ -57,9 +57,10 @@ class BootControlInterface { // The |slot| number must be between 0 and GetNumSlots() - 1 and the // |partition_name| is a platform-specific name that identifies a partition on // every slot. In order to access the dynamic partitions in the target slot, - // PreparePartitionsForUpdate() must be called (once per payload) prior to - // calling this function. On success, returns true and stores the block device - // in |device|. + // GetDynamicPartitionControl()->PreparePartitionsForUpdate() must be called + // (with |update| == true for the first time for a payload, and |false| for + // for the rest of the times) prior to calling this function. On success, + // returns true and stores the block device in |device|. virtual bool GetPartitionDevice(const std::string& partition_name, Slot slot, std::string* device) const = 0; @@ -84,14 +85,6 @@ class BootControlInterface { // of the operation. virtual bool MarkBootSuccessfulAsync(base::Callback<void(bool)> callback) = 0; - // Initializes the metadata of the underlying partitions for a given |slot| - // and sets up the states for accessing dynamic partitions. - // Metadata will be written to the specified |slot| if - // |update_metadata| is set. - virtual bool PreparePartitionsForUpdate(Slot slot, - const DeltaArchiveManifest& manifest, - bool update_metadata) = 0; - // Do necessary clean-up operations after the whole update. virtual void Cleanup() = 0; |