summaryrefslogtreecommitdiff
path: root/common/boot_control_interface.h
diff options
context:
space:
mode:
authorYifan Hong <elsk@google.com>2018-10-16 16:54:18 -0700
committerYifan Hong <elsk@google.com>2018-10-26 18:23:52 +0000
commit6b0a9849373e6d2eafca7b5c3dc24ac527f5fd7c (patch)
treea07e268df193f341e3bd40ce4f76e8fd0ac77c47 /common/boot_control_interface.h
parenta91195d0da8751af5d434d6465ff33f2712aca2c (diff)
PartitionSizes -> PartitionMetadata
In a following CL, InitPartiitonMetadata not only takes sizes but also group of each partition. Rename the struct to a more generic name. Test: builds Change-Id: Ie8a7e58b0cccc45e533de368e24f5a73d556de65
Diffstat (limited to 'common/boot_control_interface.h')
-rw-r--r--common/boot_control_interface.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/common/boot_control_interface.h b/common/boot_control_interface.h
index 776333c8..1b76939a 100644
--- a/common/boot_control_interface.h
+++ b/common/boot_control_interface.h
@@ -33,7 +33,7 @@ namespace chromeos_update_engine {
class BootControlInterface {
public:
using Slot = unsigned int;
- using PartitionSizes = std::map<std::string, uint64_t>;
+ using PartitionMetadata = std::map<std::string, uint64_t>;
static const Slot kInvalidSlot = UINT_MAX;
@@ -81,11 +81,11 @@ class BootControlInterface {
// Initialize metadata of underlying partitions for a given |slot|.
// Ensure that partitions at the specified |slot| has a given size, as
- // specified by |partition_sizes|. |partition_sizes| has the format:
+ // specified by |partition_metadata|. |partition_metadata| has the format:
// {"vendor": 524288000, "system": 2097152000, ...}; values must be
// aligned to the logical block size of the super partition.
- virtual bool InitPartitionMetadata(Slot slot,
- const PartitionSizes& partition_sizes) = 0;
+ virtual bool InitPartitionMetadata(
+ Slot slot, const PartitionMetadata& partition_metadata) = 0;
// Do necessary clean-up operations after the whole update.
virtual void Cleanup() = 0;