summaryrefslogtreecommitdiff
path: root/common/dynamic_partition_control_interface.h
diff options
context:
space:
mode:
authorTianjie <xunchang@google.com>2020-06-16 19:14:10 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2020-06-16 19:14:10 +0000
commit485f36ac6c53a85f644b57e4ee881db632f224a5 (patch)
treeeec101d63b479aa8d84d4a53d544c77987edb2ef /common/dynamic_partition_control_interface.h
parent3ae912f9fe50eb0ca3985274079f7bd44ee27a86 (diff)
parentd7ef9ad1f8ac9372b0d4cae1a9dcf832f89b239d (diff)
Implement PartitionUpdateGenerator for partial updates am: 99d570d67b am: d7ef9ad1f8
Original change: https://android-review.googlesource.com/c/platform/system/update_engine/+/1326713 Change-Id: I849977e9155d0b3824e885262e8622abce907572
Diffstat (limited to 'common/dynamic_partition_control_interface.h')
-rw-r--r--common/dynamic_partition_control_interface.h12
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