diff options
author | Tianjie <xunchang@google.com> | 2020-06-16 19:37:00 +0000 |
---|---|---|
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2020-06-16 19:37:00 +0000 |
commit | d9947187f09ce5f88c8c398093c0f23a6264b83b (patch) | |
tree | eec101d63b479aa8d84d4a53d544c77987edb2ef /common/dynamic_partition_control_interface.h | |
parent | 509ec474950afe0701881d380109bbf33e7c24ab (diff) | |
parent | 485f36ac6c53a85f644b57e4ee881db632f224a5 (diff) |
Implement PartitionUpdateGenerator for partial updates am: 99d570d67b am: d7ef9ad1f8 am: 485f36ac6c
Original change: https://android-review.googlesource.com/c/platform/system/update_engine/+/1326713
Change-Id: Idd779bd3a90669ded623134ba2da58fbff3c9b37
Diffstat (limited to 'common/dynamic_partition_control_interface.h')
-rw-r--r-- | common/dynamic_partition_control_interface.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/common/dynamic_partition_control_interface.h b/common/dynamic_partition_control_interface.h index 58ebfe46f..7289deeef 100644 --- a/common/dynamic_partition_control_interface.h +++ b/common/dynamic_partition_control_interface.h @@ -21,6 +21,7 @@ #include <memory> #include <string> +#include <vector> #include "update_engine/common/action.h" #include "update_engine/common/cleanup_previous_update_action_delegate.h" @@ -118,6 +119,17 @@ class DynamicPartitionControlInterface { // progress, while ResetUpdate() forcefully free previously // allocated space for snapshot updates. virtual bool ResetUpdate(PrefsInterface* prefs) = 0; + + // Reads the dynamic partitions metadata from the current slot, and puts the + // name of the dynamic partitions with the current suffix to |partitions|. + // Returns true on success. + virtual bool ListDynamicPartitionsForSlot( + uint32_t current_slot, std::vector<std::string>* partitions) = 0; + + // Finds a possible location that list all block devices by name; and puts + // the result in |path|. Returns true on success. + // Sample result: /dev/block/by-name/ + virtual bool GetDeviceDir(std::string* path) = 0; }; } // namespace chromeos_update_engine |