class GptDevicePartitioner
Defined at line 34 of file ../../src/firmware/paver/gpt.h
Useful for when a GPT table is available (e.g. x86 devices). Provides common
utility functions.
Public Methods
const paver::BlockDevices & devices ()
Defined at line 82 of file ../../src/firmware/paver/gpt.h
fidl::UnownedClientEnd<fuchsia_io::Directory> svc_root ()
Defined at line 84 of file ../../src/firmware/paver/gpt.h
zx::result<InitializeGptResult> InitializeGpt (const paver::BlockDevices &devices,fidl::UnownedClientEnd<fuchsia_io::Directory>svc_root,const PaverConfig &config)
Find and initialize a GPT based device by querying fshost for the system GPT.
If the system GPT was not formatted correctly, attempts to format it by calling
fuchsia.fshost/Recovery.InitSystemPartitionTable.
Defined at line 109 of file ../../src/firmware/paver/gpt.cc
zx::result<std::unique_ptr<BlockPartitionClient>> FindPartition (FilterCallback filter)
Returns a connection to the first matching partition.
Defined at line 166 of file ../../src/firmware/paver/gpt.cc
zx::result<std::vector<std::unique_ptr<BlockPartitionClient>>> FindAllPartitions (FilterCallback filter)
Returns a connection to all matching partitions.
Defined at line 185 of file ../../src/firmware/paver/gpt.cc
zx::result<> ResetPartitionTables (std::vector<PartitionInitSpec> partitions)
Wipes the partition table and resets it to `partitions`.
See fuchsia.storage.partitions.PartitionsManager/ResetPartitionTables.
Defined at line 212 of file ../../src/firmware/paver/gpt.cc