struct PartitionSpec
Defined at line 70 of file ../../src/firmware/paver/device-partitioner.h
Operations on a specific partition take two identifiers, a partition type
and a content type.
The first is the conceptual partition type. This may not necessarily map 1:1
with on-disk partitions. For example, some devices have multiple bootloader
stages which live in different partitions on-disk but which would both have
type kBootloader.
The second is a device-specific string identifying the contents the caller
wants to read/write. The backend uses this to decide which on-disk partitions
to use and where the content lives in them. The default content type is
null or empty.
Public Members
Partition partition
basic_string_view content_type
Public Methods
void PartitionSpec (Partition partition)
Creates a spec with the given partition and default (null) content type.
Defined at line 73 of file ../../src/firmware/paver/device-partitioner.h
void PartitionSpec (Partition partition, std::string_view content_type)
Creates a spec with the given partition and content type.
Defined at line 77 of file ../../src/firmware/paver/device-partitioner.h
fbl::String ToString ()
Returns a descriptive string for logging.
Does not necessary match the on-disk partition name, just meant to
indicate the conceptual partition type in a device-agnostic way.
Defined at line 144 of file ../../src/firmware/paver/device-partitioner.cc